I have added Nuget ‘Microsoft.WindowsAppSDK” as shown below
However when adding the library in App.xaml.cs:
using WASDK = Microsoft.WindowsAppSDK;
It gives an error:
The type or namespace name 'WindowsAppSDK' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Did I miss any steps?
3
Try to add version info to your .csproj file:
<WindowsAppSdkIncludeVersionInfo>true</WindowsAppSdkIncludeVersionInfo>