-
Notifications
You must be signed in to change notification settings - Fork 724
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
31 lines (27 loc) · 2.09 KB
/
Directory.Build.props
File metadata and controls
31 lines (27 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- We have two projects in the same directory here, so we'll add a differentiator folder to output directories. -->
<GenerateProjectSpecificOutputFolder>true</GenerateProjectSpecificOutputFolder>
<!-- Work around DefaultElementAnimator.cs compiler error from missing experimental types -->
<MUXFinalRelease>true</MUXFinalRelease>
</PropertyGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" Condition="Exists($([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')))" />
<!-- When building standalone, WinUI Gallery needs to do some extra things that are done implicitly in the WinUI repo.-->
<PropertyGroup Condition="'$(IsInWinUIRepo)' == 'true'">
<!-- We want to binplace the WinUI Gallery pdb to a subdirectory of Symbols\Test so that the UWP and Desktop versions don't
overwrite each other. -->
<BinplaceSymbolsToSubdir>true</BinplaceSymbolsToSubdir>
</PropertyGroup>
<!--
When building in the WinUI repo, we likely only have one current flavor built, either x86 or x64, and won't have locally built bits to support both.
In that case, we only build an appx for the current flavor. If we're not in the WinUI repo or specify we have all flavors built with BuildAllAppFlavors,
we will build both the x86 and x64 flavors into the same appx.
-->
<PropertyGroup Condition="'$(IsInWinUIRepo)' != 'true' AND '$(BuildAllAppFlavors)' == ''">
<BuildAllAppFlavors>true</BuildAllAppFlavors>
</PropertyGroup>
<!-- If we aren't building in the WinUI repo, import the necessary missing props we'd normally pick up from its Directory.Build.props hierarchy -->
<!-- The UseStandalone property allows this to be overridden, in order to buildReleaseSamples to build without changing the entire repo -->
<Import Project="Standalone.props" Condition="'$(IsInWinUIRepo)' != 'true' OR '$(UseStandalone)' == 'true'"/>
</Project>