-
Notifications
You must be signed in to change notification settings - Fork 41
/
Directory.Build.props
73 lines (64 loc) · 2.95 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
71
72
73
<Project>
<PropertyGroup>
<!-- Package Config -->
<Company>Microsoft</Company>
<Authors>Microsoft</Authors>
<Product>ColorCode Universal</Product>
<CommonTags>dotnet;Community;Toolkit;syntax;highlight</CommonTags>
<NoPackageAnalysis>true</NoPackageAnalysis>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
<PackageProjectUrl>https://github.com/CommunityToolkit/ColorCode-Universal</PackageProjectUrl>
<!-- Project States -->
<IsUwpProject>$(MSBuildProjectName.Contains('UWP'))</IsUwpProject>
<IsWinUIProject>$(MSBuildProjectName.Contains('WinUI'))</IsWinUIProject>
<IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
</PropertyGroup>
<!-- UWP Config -->
<PropertyGroup Condition="'$(IsUwpProject)' == 'true'">
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
</PropertyGroup>
<!-- WinUI Config -->
<PropertyGroup Condition="'$(IsWinUIProject)' == 'true'">
<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.38" PrivateAssets="all" />
</ItemGroup>
</When>
</Choose>
<Choose>
<When Condition="'$(IsWinUIProject)' == 'true'">
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.4" />
</ItemGroup>
</When>
</Choose>
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="2.1.23" PrivateAssets="all" />
</ItemGroup>
</Project>