Unable to create AppxPackage with all the required dependencies #2317
-
I recently converted my WinAppSDK packaged solution with waproj to single csproj. I am now unable to create the correct AppxPackage. I followed basic instructions at https://docs.microsoft.com/en-us/windows/apps/package-and-deploy/ci-for-winui3?pivots=winui3-packaged-csharp#building-from-command-line The Dependencies folder only has I am using VisualStudio 17.1.1, is it a known issue or am I missing something? Running the app results in following errors in eventviewer
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@harvinders Through v1.0.1, internal Windows App SDK binaries require the CRT to be deployed (either via VCLibs.Desktop framework package for packaged apps, or VCRedist*.exe for unpackaged apps). A C# single-project app like yours can turn that behavior on by adding this property to the csproj: See also #2117 |
Beta Was this translation helpful? Give feedback.
@harvinders Through v1.0.1, internal Windows App SDK binaries require the CRT to be deployed (either via VCLibs.Desktop framework package for packaged apps, or VCRedist*.exe for unpackaged apps). A C# single-project app like yours can turn that behavior on by adding this property to the csproj:
<WinUISDKReferences>true</WinUISDKReferences>
With v1.0.2, Windows App SDK binaries will no longer dynamically link to CRT libraries, so this won't be a problem and you can remove the property at that point.
See also #2117