IAsyncOperation await in Windows Service: “Type is defined in an assembly that is not referenced…”
问题 I have a Windows Service (created using this tutorial). And I am trying to run an IAsyncOperation : var uri= new Uri(@"uri/to/second/app"); var options = new LauncherOptions { TargetApplicationPackageFamilyName = "second-app-guid" }; var results = await Launcher.LaunchUriForResultsAsync(uri, options); However, I get the following error from the await : The type 'IAsyncOperationWithProgress<,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows,