Skip to content

Commit

Permalink
feat: Define constants for packaged vs. unpackaged WinAppSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Sep 17, 2024
1 parent 7987519 commit 2ad6248
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Uno.Sdk/targets/Uno.SingleProject.WinAppSdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<WindowsPackageType Condition="'$(WindowsPackageType)'==''">None</WindowsPackageType>
</PropertyGroup>

<PropertyGroup Condition="'$(WindowsPackageType)' == 'MSIX'">
<DefineConstants>$(DefineConstants);WINAPPSDK_PACKAGED</DefineConstants>
</PropertyGroup>

<ItemGroup>
<!-- Exclude Manifest items that have already been added to avoid duplicates -->
<Manifest Include="$(ApplicationManifest)"
Expand Down

0 comments on commit 2ad6248

Please sign in to comment.