forked from nunit/nunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
39 lines (30 loc) · 1.71 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
<Project>
<PropertyGroup>
<LangVersion>6</LangVersion>
<Features>strict</Features>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\nunit.snk</AssemblyOriginatorKeyFile>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<OutputPath>..\..\..\bin\$(Configuration)\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(BuildingInsideVisualStudio)' != 'true'">
<!-- Ideally this is always enabled, but that tends to hurt developer productivity -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<!-- netcoreapp1.1 tests currently pull the netstandard1.6 framework, and
netcoreapp2.0 tests currently pull the netstandard2.0 framework -->
<DefineConstants Condition="'$(TargetFramework)' != 'netstandard1.4'
and '$(TargetFramework)' != 'netcoreapp1.1'">$(DefineConstants);PARALLEL;SERIALIZATION</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)' != 'net20'
and '$(TargetFramework)' != 'net35'">$(DefineConstants);ASYNC</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)' != 'netstandard1.4'
and '$(TargetFramework)' != 'netcoreapp1.1'
and '$(TargetFramework)' != 'netstandard2.0'
and '$(TargetFramework)' != 'netcoreapp2.0'">$(DefineConstants);PLATFORM_DETECTION;THREAD_ABORT;APARTMENT_STATE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\CommonAssemblyInfo.cs" Link="Properties\CommonAssemblyInfo.cs" />
<Compile Include="..\FrameworkVersion.cs" Link="Properties\FrameworkVersion.cs" />
</ItemGroup>
</Project>