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
58 lines (51 loc) · 2.76 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
<?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</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</FullLicenseFile>
<OutputFullPath>$(MSBuildThisFileDirectory)</OutputFullPath>
<OutputDrop Condition=" '$(OutputDrop)' == '' ">$(OutputFullPath)bin\$(Configuration)\</OutputDrop>
<OutputPath>$(OutputDrop)\$(MSBuildProjectName)\</OutputPath>
<DocumentationFile>$(OutputPath)$(MSBuildProjectName).xml</DocumentationFile>
<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>
</PropertyGroup>
<PropertyGroup>
<IsTest>false</IsTest>
<IsTest Condition="$(MSBuildProjectName.ToLowerInvariant().Contains('test'))">true</IsTest>
</PropertyGroup>
<!--NuGet properties-->
<PropertyGroup>
<Authors>Microsoft</Authors>
<PackageLicenseUrl>https://github.com/Microsoft/dotnet-apiport/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/Microsoft/dotnet-apiport</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>.NET portability apiport</PackageTags>
<Copyright>Copyright 2017</Copyright>
</PropertyGroup>
<!-- 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>