Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[PowerToys Run] Obsolete APIs and warnings introduced in .net5 #12423

Conversation

mykhailopylyp
Copy link
Contributor

Summary of the Pull Request

What is this about:

What is include in the PR:

  • Use WoxJsonStorage instead of BinaryStorage
  • Remove BinaryStorage and BinaryFormatter as a result
  • Removed Window.IsOwner property as it always returns true. That option doesn't make sense because we want to query all windows not only windows created by PowerLauncher.exe process
  • Don't include ImageUsageCache.json into the bug report tool as it is not needed and can be considered as sensitive info

How does someone test / validate:

  • Test PT Run for regressions
  • Run unit tests
  • Check that ImageUsageCache.json is created and populated with valid data

Quality Checklist

Contributor License Agreement (CLA)

A CLA must be signed. If not, go over here and sign the CLA.

@mykhailopylyp mykhailopylyp added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label Jul 19, 2021
Copy link
Collaborator

@jaimecbernardo jaimecbernardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Great work!

@mykhailopylyp mykhailopylyp merged commit e1845d0 into microsoft:feature/pt-run-net5 Jul 20, 2021
@mykhailopylyp mykhailopylyp deleted the update-to-net5-binaryformatter branch July 20, 2021 08:48
mykhailopylyp added a commit that referenced this pull request Jul 21, 2021
* [Setup] Add support for installing both dotnet 3 and 5 (#12306)

* [PowerToys Run] Update to net5 (#12286)

* Change targets of projects

* Update Microsoft.Toolkit.Uwp.Notifications,

changed TargetFramework for PowerLauncher project in order to resolve an issue with ModernWpf

* Specify windows version in order to fix build errors

* Fixed suppressed warnings

* Updated sdk

* Removed usage of obsolete GlobalAssemblyCache

* Removed obsolete DesktopNotificationManagerCompat

* Update nuget versions

* Update installer

* [PowerToys Run] Obsolete APIs and warnings introduced in .net5 (#12423)

* Change targets of projects

* Update Microsoft.Toolkit.Uwp.Notifications,

changed TargetFramework for PowerLauncher project in order to resolve an issue with ModernWpf

* Fixed suppressed warnings

* Removed obsolete DesktopNotificationManagerCompat

* Get rid of binary formatter

* Update tests

* Don't include new image cache file to the report

* There's no need to call IsOwner as it doesn't make sense

* Fix different nullability exception

* Exclude extra dlls from tests

Co-authored-by: Andrey Nekrasov <yuyoyuppe@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Product-PowerToys Run Improved app launch PT Run (Win+R) Window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants