In this video we'll see how to programmatically check if a WinAppSDK app is a packaged app or a non-packaged app.
Chapters:
00:00 Intro
00:16 Create a plain WinUI 3 packaged app
00:23 Change the packaged app to a non-packaged app
00:35 Handle "WindowsAppSDK" runtime error
00:56 Define a constant in the project file (*.csproj) with DefineConstants
01:38 Use the constant in the app
03:07 Ending
WindowsAppSKD Runtime:
https://learn.microsoft.com/en-us/win...
DefineConstants:
https://learn.microsoft.com/en-us/dot...
MS Build Conditional Constructs:
https://learn.microsoft.com/en-us/vis...
Twitter:
/ andrewkeepcodin
#winui3 #winappsdk #packaged