uwp-desktop
uwp-desktop copied to clipboard
Windows.System.Launcher shows warning that can only be used in UWP apps
I am using Windows.System.Launcher.LaunchUriAsync from a C# Windows Forms Desktop application, and the function works.
However, I see a warning that "Type 'Windows.System.Launcher' can only be used in UWP apps, not Desktop or Centennial.
Is this warning benign? Is it only going to work on my development machine?
For an example snippet, this line of code generates the warning but works as expected.
await Task.Run(() =>
Launcher.LaunchUriAsync(new System.Uri($"ms-windows-store:review?pfn={Package.Current.Id.FamilyName}")));
Same concern here with this line:
Await Launcher.QueryUriSupportAsync(dummyUri, LaunchQuerySupportType.Uri, packageName)