Skip to content

Commit

Permalink
feat: adding manifest defaults for WinUI
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Jan 23, 2024
1 parent 301e5c9 commit 3a86796
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Uno.Sdk/Sdk/Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ Copyright (C) Uno Platform Inc. All rights reserved.
<EnableWindowsTargeting Condition=" $(EnableWindowsTargeting) == '' ">true</EnableWindowsTargeting>
</PropertyGroup>

<PropertyGroup Condition="$(SingleProject)!='true' and $(OutputType)=='WinExe'">
<ApplicationManifest Condition=" $(ApplicationManifest) == '' ">app.manifest</ApplicationManifest>
<Platforms Condition=" $(Platforms) == '' ">x86;x64;arm64</Platforms>
<PublishProfile Condition=" $(PublishProfile) == '' ">win-$(Platform).pubxml</PublishProfile>
<UseWinUI Condition=" $(UseWinUI) == '' ">true</UseWinUI>
</PropertyGroup>

<ItemGroup Condition="$(SingleProject)!='true' and $(OutputType)=='WinExe'">
<!-- Exclude Manifest items that have already been added to avoid duplicates -->
<Manifest Include="$(ApplicationManifest)" Exclude="@(Manifest)" />
</ItemGroup>

<!--
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
Expand Down

0 comments on commit 3a86796

Please sign in to comment.