forked from dotnet/Open-XML-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
103 lines (93 loc) · 4.65 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<IsShipped>false</IsShipped>
<SystemIOPackagingVersion>4.6.0</SystemIOPackagingVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<!-- Because of the size of the project, to facilitate quick development, by default only single
frameworks will be build. This is customizable with the following possible values:
- DevFramework40: .NET Framework 4.0
- DevFramework46: .NET Framework 4.6
- DevCore11: .NET Core 1.1
- DevCore21: .NET Core 2.1
- All: Will build for all platforms
-->
<ProjectLoadStyle Condition=" '$(ProjectLoadStyle)' == '' ">DevCore21</ProjectLoadStyle>
</PropertyGroup>
<PropertyGroup>
<InformationalVersion>$(GitVersion_InformationalVersion)</InformationalVersion>
<FileVersion>$(GitVersion_MajorMinorPatch)</FileVersion>
<AssemblyVersion>$(GitVersion_AssemblySemVer)</AssemblyVersion>
<Version>$(GitVersion_NuGetVersionV2)</Version>
</PropertyGroup>
<Choose>
<When Condition=" '$(ProjectLoadStyle)' == 'DevFramework40' ">
<PropertyGroup>
<ProductTargetFrameworks>net40</ProductTargetFrameworks>
<TestTargetFrameworks>net452</TestTargetFrameworks>
<AssetsTargetFrameworks>net452</AssetsTargetFrameworks>
<!-- BenchmarkDotNet only supports .NET Standard 2.0-->
<BenchmarkTargetFrameworks>net461</BenchmarkTargetFrameworks>
</PropertyGroup>
</When>
<When Condition=" '$(ProjectLoadStyle)' == 'DevFramework46' ">
<PropertyGroup>
<ProductTargetFrameworks>net46</ProductTargetFrameworks>
<TestTargetFrameworks>net46</TestTargetFrameworks>
<AssetsTargetFrameworks>net452</AssetsTargetFrameworks>
<BenchmarkTargetFrameworks>net461</BenchmarkTargetFrameworks>
</PropertyGroup>
</When>
<When Condition=" '$(ProjectLoadStyle)' == 'DevCore11' ">
<PropertyGroup>
<ProductTargetFrameworks>netstandard1.3</ProductTargetFrameworks>
<TestTargetFrameworks>netcoreapp1.1</TestTargetFrameworks>
<AssetsTargetFrameworks>netstandard1.3</AssetsTargetFrameworks>
<!-- BenchmarkDotNet only supports .NET Standard 2.0-->
<BenchmarkTargetFrameworks>netcoreapp2.1</BenchmarkTargetFrameworks>
</PropertyGroup>
</When>
<When Condition=" '$(ProjectLoadStyle)' == 'DevCore21' ">
<PropertyGroup>
<ProductTargetFrameworks>netstandard2.0</ProductTargetFrameworks>
<TestTargetFrameworks>netcoreapp2.1</TestTargetFrameworks>
<AssetsTargetFrameworks>netstandard1.3</AssetsTargetFrameworks>
<BenchmarkTargetFrameworks>netcoreapp2.1</BenchmarkTargetFrameworks>
</PropertyGroup>
</When>
<When Condition=" '$(ProjectLoadStyle)' == 'All' ">
<PropertyGroup>
<!--
.NET Standard target must be first to avoid a ResXFileCodeGenerator issue
(tracked at https://github.com/dotnet/project-system/issues/1519)
-->
<ProductTargetFrameworks>netstandard1.3;netstandard2.0;net35;net40;net46</ProductTargetFrameworks>
<AssetsTargetFrameworks>net452;netstandard1.3</AssetsTargetFrameworks>
<TestTargetFrameworks>net452;net46;netcoreapp1.1;netcoreapp2.1</TestTargetFrameworks>
<BenchmarkTargetFrameworks>net461;netcoreapp2.1</BenchmarkTargetFrameworks>
<!-- Must disable this due to https://github.com/NuGet/Home/issues/7414 so .NET Core 1.x will build -->
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
</When>
</Choose>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<LangVersion>7.3</LangVersion>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\rules.ruleset</CodeAnalysisRuleSet>
<!-- Signing -->
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)DocumentFormat.OpenXml.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<OutputFullPath>$(MSBuildThisFileDirectory)</OutputFullPath>
<OutputDrop Condition=" '$(OutputDrop)' == '' ">$(OutputFullPath)bin\$(Configuration)\</OutputDrop>
<OutputPath>$(OutputDrop)\$(MSBuildProjectName)\</OutputPath>
<BaseIntermediateOutputPath>$(OutputFullPath)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
</PropertyGroup>
<PropertyGroup>
<IsTestProject Condition=" '$(IsTestProject)' == '' ">false</IsTestProject>
<IsBenchmarkProject Condition=" '$(IsBenchmarkProject)' == '' ">false</IsBenchmarkProject>
</PropertyGroup>
</Project>