forked from CommunityToolkit/ColorCode-Universal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
70 lines (62 loc) · 2.97 KB
/
Directory.Build.props
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<Project>
<PropertyGroup>
<!-- Package Config -->
<Authors>Microsoft, William Bradley</Authors>
<NoPackageAnalysis>true</NoPackageAnalysis>
<PackageProjectUrl>https://github.com/WilliamABradley/ColorCode-Universal</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/WilliamABradley/ColorCode-Universal/blob/master/LICENSE</PackageLicenseUrl>
<Copyright>Copyright © Microsoft Corporation, William Bradley 2017</Copyright>
<!-- Project States -->
<IsUwpProject>$(MSBuildProjectName.Contains('UWP'))</IsUwpProject>
<IsWinUIProject>$(MSBuildProjectName.Contains('WinUI'))</IsWinUIProject>
<IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
</PropertyGroup>
<!-- UWP Config -->
<PropertyGroup Condition="'$(IsUwpProject)' == 'true' and '$(TargetFramework)'=='uap10.0'">
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>
<!-- WinUI Config -->
<PropertyGroup Condition="'$(IsWinUIProject)' == 'true' and '$(TargetFramework)'=='uap10.0'">
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<Choose>
<When Condition="'$(SourceLinkEnabled)' != 'false' and '$(IsTestProject)' != 'true'">
<PropertyGroup>
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Optional: Include PDB in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="'$(IsUwpProject)' == 'true' and '$(IsTestProject)' != 'true'">
<ItemGroup>
<PackageReference Include="MSBuild.Sdk.Extras" Version="3.0.23" PrivateAssets="all" />
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="'$(IsWinUIProject)' == 'true' and '$(TargetFramework)'=='net5.0-windows10.0.18362.0'">
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-preview3" GeneratePathProperty="true" />
</ItemGroup>
</When>
</Choose>
<!--
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="2.1.23" PrivateAssets="all" />
</ItemGroup>
-->
</Project>