0

While Publishing app developed using 'Windows App Sdk', What is the difference between <SelfContained> vs <WindowsAppSDKSelfContained>.

To reduce the app size, I want to set <WindowsAppSDKSelfContained>false</WindowsAppSDKSelfContained>. Will it require users to manually install windows app sdk on their system, or Microsoft Store app can automatically install the sdk as part of application installation?

bashahul
  • 422
  • 1
  • 4
  • 17
  • Didn't know there was a just ``SelfContained`` option in **WinAppSDK**. Do you have any resources/links for that? – Andrew KeepCoding Feb 17 '23 at 07:53
  • 1
    SelfContained is for .NET itself (https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file), WindowsAppSDKSelfContained is for WinAppSDK (https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/self-contained-deploy/deploy-self-contained-apps) which requires SelfContained in the .NET case, I believe *".NET apps need to be published as self-contained as well to be fully self-contained. "* – Simon Mourier Feb 17 '23 at 09:36
  • @AndrewKeepCoding, https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish For setting PublishTrimmed=true, it requires to set SelfContained=true. – bashahul Feb 17 '23 at 10:40
  • I guess trimming is [not stable](https://github.com/microsoft/WindowsAppSDK/issues/2478) yet. I would skip this for the moment. – Andrew KeepCoding Feb 20 '23 at 05:32

0 Answers0