This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
/
Directory.Build.props
71 lines (64 loc) · 3.61 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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputDrop>$(TF_BUILD_BINARIESDIRECTORY)</OutputDrop>
<NoWarn>$(NoWarn),1570,1572,1573,1574,1591,1701,MSB3275,VSTHRD010,VSTHRD100,VSTHRD101,VSSDK006</NoWarn>
<Features>IOperation;$(Features)</Features>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\rules.ruleset</CodeAnalysisRuleSet>
<WriteVersionInfoToBuildLog>True</WriteVersionInfoToBuildLog>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<LicenseDocumentDirectory>$(MSBuildThisFileDirectory)\docs\LicenseTerms</LicenseDocumentDirectory>
<FullLicenseFile>$(MSBuildThisFileDirectory)\LICENSE.txt</FullLicenseFile>
<OutputFullPath>$(MSBuildThisFileDirectory)</OutputFullPath>
<OutputDrop Condition=" '$(OutputDrop)' == '' ">$(OutputFullPath)bin\$(Configuration)\</OutputDrop>
<RawBinariesDropDirectory Condition=" '$(RawBinariesDropDirectory)' == '' ">$(OutputDrop)\raw\binaries</RawBinariesDropDirectory>
<RawSymbolsDropDirectory Condition=" '$(RawSymbolsDropDirectory)' == '' ">$(OutputDrop)\raw\symbols</RawSymbolsDropDirectory>
<OutputPath>$(OutputDrop)\$(MSBuildProjectName)\</OutputPath>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<BaseIntermediateOutputPath>$(OutputFullPath)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
</PropertyGroup>
<!-- Assembly signing not supported on Linux, yet.
`CS7027: Error signing output with public key from file` -->
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\PortabilityTools.snk</AssemblyOriginatorKeyFile>
<DefineConstants>$(DefineConstants);FEATURE_STRONGNAMESIGNING</DefineConstants>
</PropertyGroup>
<!-- Trying to mitigate the number of warnings that the solution contains by
adding this into our Release builds. As a result, it should be caught in
our PRs because of the CI builds -->
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn)</NoWarn>
</PropertyGroup>
<PropertyGroup>
<IsTest>false</IsTest>
<IsTest Condition="$(MSBuildProjectName.ToLowerInvariant().Contains('test'))">true</IsTest>
</PropertyGroup>
<!--NuGet properties-->
<PropertyGroup>
<Authors>Microsoft</Authors>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageProjectUrl>https://github.com/Microsoft/dotnet-apiport</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>.NET portability apiport</PackageTags>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<RepositoryUrl>https://github.com/Microsoft/dotnet-apiport</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<Description>Evaluates portability of assemblies across .NET platforms</Description>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\LICENSE.txt" Pack="true" PackagePath=""/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="all" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.2.31" PrivateAssets="all" />
</ItemGroup>
<!-- Some of the project types do not have a pack target. This creates a default empty pack target that will be overridden in supported project types -->
<Target Name="Pack">
</Target>
</Project>