Skip to content

Commit

Permalink
Merge pull request unoplatform#15183 from unoplatform/dev/ds/winui-de…
Browse files Browse the repository at this point in the history
…faults

Adding Manifest defaults for WinUI
  • Loading branch information
jeromelaban authored Jan 23, 2024
2 parents 301e5c9 + 3a86796 commit 3e3e87b
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 3e3e87b

Please sign in to comment.