Skip to content

WindowsAppSDKSelfContained doesn't work #3150

Answered by DarranRowe
khoabui1412 asked this question in Q&A
Discussion options

You must be logged in to vote

This is an issue with how the bootstrapper works.
The default for the auto initialisation, which happens when you use WindowsPackageType None with no other options, is to show the no match UI. However, it is dumb, it checks for the existence of the Windows App SDK but doesn't take self contained applications into account.
When you want to use the application self contained, you need to make sure that this option isn't used. The two options, as documented, are to either use WindowsAppSDKBootstrapAutoInitializeOptions_OnNoMatch_ShowUI in your project file and set it to false:

<WindowsAppSDKBootstrapAutoInitializeOptions_OnNoMatch_ShowUI>false</WindowsAppSDKBootstrapAutoInitializeOptions_OnN…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khoabui1412
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants