| 1 |
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 2 |
<Import Project="dir.common.props" /> |
| 3 |
|
| 4 |
<!-- Disable some standard properties for building our projects --> |
| 5 |
<PropertyGroup> |
| 6 |
<NoStdLib>true</NoStdLib> |
| 7 |
<NoExplicitReferenceToStdLib>true</NoExplicitReferenceToStdLib> |
| 8 |
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences> |
| 9 |
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute> |
| 10 |
<!-- Disable some C# warnings for the tests. --> |
| 11 |
<NoWarn>78,162,164,168,169,219,251,252,414,429,642,649,652,675,1691,1717,1718,3001,3002,3003,3005,3008</NoWarn> |
| 12 |
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> |
| 13 |
<SkipSigning Condition="'$(CrossGen)' == 'true'">true</SkipSigning> |
| 14 |
</PropertyGroup> |
| 15 |
|
| 16 |
<!-- Expose the target OS in a more convenient fashion --> |
| 17 |
<PropertyGroup> |
| 18 |
<OSGroup Condition="'$(OSGroup)'=='' and $(Configuration.StartsWith('Windows'))">Windows_NT</OSGroup> |
| 19 |
<OSGroup Condition="'$(OSGroup)'=='' and $(Configuration.StartsWith('Linux'))">Linux</OSGroup> |
| 20 |
<OSGroup Condition="'$(OSGroup)'=='' and $(Configuration.StartsWith('OSX'))">OSX</OSGroup> |
| 21 |
<OSGroup Condition="'$(OSGroup)'=='' and $(Configuration.StartsWith('FreeBSD'))">FreeBSD</OSGroup> |
| 22 |
<OSGroup Condition="'$(OSGroup)'==''">Windows_NT</OSGroup> |
| 23 |
</PropertyGroup> |
| 24 |
|
| 25 |
<!-- Setup properties per OSGroup --> |
| 26 |
<Choose> |
| 27 |
<When Condition="'$(OSGroup)'=='AnyOS'"> |
| 28 |
<PropertyGroup> |
| 29 |
</PropertyGroup> |
| 30 |
</When> |
| 31 |
<When Condition="'$(OSGroup)'=='Windows_NT'"> |
| 32 |
<PropertyGroup> |
| 33 |
<TargetsWindows>true</TargetsWindows> |
| 34 |
<TestNugetRuntimeId>win7-x64</TestNugetRuntimeId> |
| 35 |
<DefaultTestTFM>net45</DefaultTestTFM> |
| 36 |
</PropertyGroup> |
| 37 |
</When> |
| 38 |
<When Condition="'$(OSGroup)'=='Linux'"> |
| 39 |
<PropertyGroup> |
| 40 |
<TargetsUnix>true</TargetsUnix> |
| 41 |
<TargetsLinux>true</TargetsLinux> |
| 42 |
<TestNugetRuntimeId>ubuntu.14.04-x64</TestNugetRuntimeId> |
| 43 |
</PropertyGroup> |
| 44 |
</When> |
| 45 |
<When Condition="'$(OSGroup)'=='OSX'"> |
| 46 |
<PropertyGroup> |
| 47 |
<TargetsUnix>true</TargetsUnix> |
| 48 |
<TargetsOSX>true</TargetsOSX> |
| 49 |
<TestNugetRuntimeId>osx.10.10-x64</TestNugetRuntimeId> |
| 50 |
</PropertyGroup> |
| 51 |
</When> |
| 52 |
<When Condition="'$(OSGroup)'=='FreeBSD'"> |
| 53 |
<PropertyGroup> |
| 54 |
<TargetsUnix>true</TargetsUnix> |
| 55 |
<TargetsFreeBSD>true</TargetsFreeBSD> |
| 56 |
<TestNugetRuntimeId>ubuntu.14.04-x64</TestNugetRuntimeId> |
| 57 |
</PropertyGroup> |
| 58 |
</When> |
| 59 |
<Otherwise> |
| 60 |
<PropertyGroup> |
| 61 |
<ConfigurationErrorMsg>$(ConfigurationErrorMsg);Unknown OSGroup [$(OSGroup)] specificed in your project.</ConfigurationErrorMsg> |
| 62 |
</PropertyGroup> |
| 63 |
</Otherwise> |
| 64 |
</Choose> |
| 65 |
|
| 66 |
<PropertyGroup> |
| 67 |
<TargetsUnknownUnix Condition="'$(TargetsUnix)' == 'true' AND '$(OSGroup)' != 'FreeBSD' AND '$(OSGroup)' != 'Linux' AND '$(OSGroup)' != 'OSX'">true</TargetsUnknownUnix> |
| 68 |
</PropertyGroup> |
| 69 |
|
| 70 |
<!-- Default Test platform to deploy the netstandard compiled tests to --> |
| 71 |
<PropertyGroup> |
| 72 |
<!-- we default TestTFM and FilterToTestTFM to netcoreapp2.1 if they are not explicity defined --> |
| 73 |
<DefaultTestTFM Condition="'$(DefaultTestTFM)'==''">netcoreapp2.1</DefaultTestTFM> |
| 74 |
<TestTFM Condition="'$(TestTFM)'==''">$(DefaultTestTFM)</TestTFM> |
| 75 |
<FilterToTestTFM Condition="'$(FilterToTestTFM)'==''">$(DefaultTestTFM)</FilterToTestTFM> |
| 76 |
</PropertyGroup> |
| 77 |
|
| 78 |
<!-- Set default ZapRequire level (used only when CrossGen is enabled) --> |
| 79 |
<PropertyGroup> |
| 80 |
<ZapRequire Condition="'$(ZapRequire)' == ''">2</ZapRequire> |
| 81 |
</PropertyGroup> |
| 82 |
</Project> |