I try to repeat this manual. My project is blank WPF + blank UWP app.
I have installed SDK Windows 10 (10.0.18362.0) screenshot
I don't have references Windows Desktop Extension SDK for UWP. screenshot
What is wrong? How to add Windows Desktop Extension SDK for UWP to my project?
I tried install all version SDK from 16299 to 18362, reinstalled and repaired the vs studio. Manual installed Windows 10 SDK from microsoft it also did not help. I found information that Windows Desktop Extension SDK for UWP was merged to main UWP packet.
But when i try run the project without Windows Desktop Extension SDK i get error
Error CS0103 The name 'FullTrustProcessLauncher' does not exist in the current context.
if (ApiInformation.IsApiContractPresent("Windows.ApplicationModel.FullTrustAppContract", 1, 0))
{
await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
}
I have the same error when i try to run github example from manul without Windows Desktop Extension SDK
Solution found.
For random reason your Windows SDK can be installed to wrong directory. For me it is
C:\Program Files (x86)\Microsoft Platform SDK
. Right path is C:\Program Files (x86)\Windows Kits\10
I just made symbol link
mklink /j “C:\Program Files (x86)\Windows Kits\10” “C:\Program Files (x86)\Microsoft Platform SDK”