Windows App SDK deployment guide for self-contained apps
View original article here
- Open you *.csproj file in a text editor. It is a XML file.
- In the app project file, inside the main
PropertyGroup
, add
<WindowsPackagedType>None</WindowsPackagedType> <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
- For packaged projects, in the app project file, at the end of the file before the closing
</Project>
, add theTarget
shown below.
<Target Name="_RemoveFrameworkReferences" BeforeTargets="_ConvertItems;_CalculateInputsForGenerateCurrentProjectAppxManifest"> <ItemGroup> <FrameworkSdkReference Remove="@(FrameworkSdkReference)" Condition="$([System.String]::Copy('%(FrameworkSdkReference.SDKName)').StartsWith('Microsoft.WindowsAppRuntime.'))" /> </ItemGroup> </Target>Read More