forked from nunit/nunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommon.props
34 lines (26 loc) · 1.49 KB
/
Common.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
<Project>
<PropertyGroup>
<LangVersion>6</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\nunit.snk</AssemblyOriginatorKeyFile>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<OutputPath>..\..\..\bin\$(Configuration)\</OutputPath>
</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.6'
and '$(TargetFramework)' != 'netcoreapp1.1'">$(DefineConstants);PARALLEL</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)' != 'net20'
and '$(TargetFramework)' != 'net35'">$(DefineConstants);ASYNC</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)' != 'netstandard1.6'
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>