1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 $(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix.
7 <OsEnvironment Condition="'$(OsEnvironment)'=='' and '$(OS)'=='OSX'">Unix</OsEnvironment>
8 <OsEnvironment Condition="'$(OsEnvironment)'==''">$(OS)</OsEnvironment>
11 <!-- Build Tools Versions -->
13 <RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion>
14 <RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName>
18 Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer
19 as well as runnning the build on mono. Until we can get these sorted out we will continue using the .NET 4.6 version of the tasks.
22 <RunningOnCore>false</RunningOnCore>
23 <RunningOnCore Condition="'$(MSBuildRuntimeType)' == 'Core'">true</RunningOnCore>
24 <BuildToolsTargetsDesktop>false</BuildToolsTargetsDesktop>
25 <BuildToolsTargetsDesktop Condition="'$(RunningOnCore)' != 'true'">true</BuildToolsTargetsDesktop>
26 <BuildToolsTargets45>$(BuildToolsTargetsDesktop)</BuildToolsTargets45>
27 <RunningOnUnix Condition="('$(RunningOnUnix)' == '') And ('$(MSBuildRuntimeType)' == 'Core')">true</RunningOnUnix>
30 <!-- Common repo directories -->
32 <CopyNuGetImplementations Condition="'$(CopyNuGetImplementations)'==''">false</CopyNuGetImplementations>
33 <ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir>
34 <SourceDir>$(ProjectDir)src\</SourceDir>
35 <PackagesDir>$(ProjectDir)..\packages\</PackagesDir>
36 <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)..\Tools\</ToolsDir>
37 <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli\</DotnetCliPath>
38 <BuildToolsTaskDir Condition="'$(BuildToolsTargets45)' == 'true'">$(ToolsDir)net46\</BuildToolsTaskDir>
39 <OverrideToolHost Condition="'$(OS)' != 'Windows_NT'">$(DotnetCliPath)dotnet</OverrideToolHost>
40 <CSharpCoreTargetsPath Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(ToolsDir)\Microsoft.CSharp.Core.targets</CSharpCoreTargetsPath>
41 <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two properties to any folder that exists to skip
42 the GenerateReferenceAssemblyPaths task (not target) and to prevent it from outputting a warning (MSB3644). -->
43 <_TargetFrameworkDirectories Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(MSBuildThisFileDirectory)/Documentation</_TargetFrameworkDirectories>
44 <_FullFrameworkReferenceAssemblyPaths Condition="'$(BuildToolsTargetsDesktop)' != 'true'">$(MSBuildThisFileDirectory)/Documentation</_FullFrameworkReferenceAssemblyPaths>
45 <ExcludeSigningImport>true</ExcludeSigningImport>
46 <SkipImportILTargets>true</SkipImportILTargets>
49 <!-- Common properties -->
51 <RootBinDir>$(__RootBinDir)\</RootBinDir>
52 <RootBinDir Condition="'$(__RootBinDir)'==''">$(ProjectDir)..\bin\</RootBinDir>
54 <BinDir>$(__BinDir)\</BinDir>
55 <BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)Product\$(BuildOS).$(BuildArch).$(BuildType)\</BinDir>
57 <CoreCLRBinDir>$(RootBinDir)Product\$(__BuildOS).$(__BuildArch).$(__BuildType)\</CoreCLRBinDir>
60 <!-- Default Test platform to deploy the netstandard compiled tests to -->
62 <!-- we default TestTFM and FilterToTestTFM to netcoreapp1.0 if they are not explicity defined -->
63 <DefaultTestTFM Condition="'$(DefaultTestTFM)'==''">netcoreapp1.0</DefaultTestTFM>
64 <TestTFM Condition="'$(TestTFM)'==''">$(DefaultTestTFM)</TestTFM>
65 <FilterToTestTFM Condition="'$(FilterToTestTFM)'==''">$(DefaultTestTFM)</FilterToTestTFM>
70 <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(RootBinDir)obj\</BaseIntermediateOutputPath>
71 <IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</IntermediateOutputPath>
72 <OutputPath Condition="'$(OutputPath)' == ''">$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(BuildType)</OutputPath>
75 <!-- Targeting Package paths -->
77 <TargetingPackPath Condition="'$(BaseTargetingPackPath)' == ''">$(RootBinDir)TargetingPack\</TargetingPackPath>
80 <!-- Import Build tools common props file where repo-independent properties are found -->
81 <Import Condition="Exists('$(ToolsDir)Build.Common.props')" Project="$(ToolsDir)Build.Common.props" />
83 <!-- Provides properties for dependency versions and configures dependency verification/auto-upgrade. -->
84 <Import Project="$(ProjectDir)..\dependencies.props" />
86 <!-- Use Roslyn Compilers to build -->
87 <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false'" />
88 <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)')" />
91 <!-- Need to escape double forward slash (%2F) or MSBuild will normalize to one slash on Unix. -->
92 <DotnetSourceList Include="$(PackagesDir)AzureTransfer\" Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'" />
93 <DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
94 <DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-core/api/v3/index.json" />
95 <DotnetSourceList Include="https:%2F%2Fapi.nuget.org/v3/index.json" />
98 <PropertyGroup Condition="'$(BuildAllProjects)'=='true'">
99 <!-- When we do a traversal build we get all packages up front, don't restore them again -->
100 <RestorePackages>false</RestorePackages>
104 <BuildVersionFile>$(BaseIntermediateOutputPath)BuildVersion-$(OfficialBuildId).props</BuildVersionFile>
107 <!-- If we want to overwrite the desired CoreCLR package version, we need to get the new version from the generated props file in bin/obj -->
108 <Import Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'" Project="$(BuildVersionFile)" />
110 <PropertyGroup Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'">
111 <VersionToRestore Condition="'$(StableVersion)' != ''">$(StableVersion)</VersionToRestore>
112 <VersionToRestore Condition="'$(VersionToRestore)' == ''">$(PackageVersion)-$(PreReleaseLabel)-$(BuildNumberMajor)-$(BuildNumberMinor)</VersionToRestore>
113 <PackageVersionArg>/p:CoreClrPackageVersion=$(VersionToRestore)</PackageVersionArg>
116 <!-- Which tests shall we build? Default: Priority 0 tests.
117 At the command-line, the user can specify /p:CLRTestPriorityToBuild=666 (for example), and
118 all tests with CLRTestPriority 666,..., 1 AND 0 will build.
120 Consequently, specifying CLRTestPriorityToBuild=1 will build all tests with CLRTestPriority 1 and 0.
122 CLRTestPriority = 0 will build only priority 0 cases.
124 In other words, the CLRTestPriority cases of 0 are *essential* testcases. The higher the value,
125 the less priority we give them.
128 <CLRTestPriorityToBuild>0</CLRTestPriorityToBuild>