<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <!-- NuGet package restore sources. -->
+ <PropertyGroup>
+ <RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
+ https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;
+ https://api.nuget.org/v3/index.json;
+ $(RestoreSources)
+ </RestoreSources>
+ </PropertyGroup>
+
<PropertyGroup>
<!-- Central place to set the versions of all nuget packages produced in the repo -->
<PackageVersion Condition="'$(PackageVersion)' == ''">2.1.0</PackageVersion>
<PgoDataCurrentRef>5b662e16887cd01cada59eb678ab0c1dd64438c4</PgoDataCurrentRef>
</PropertyGroup>
- <!-- Auto-upgraded properties for each build info dependency. -->
- <PropertyGroup>
- <CoreFxPackageVersion>4.5.0-preview1-25830-02</CoreFxPackageVersion>
- <PlatformPackageVersion>2.1.0-preview1-25830-02</PlatformPackageVersion>
- <PgoDataPackageVersion>99.99.99-master-20171030-0047</PgoDataPackageVersion>
- </PropertyGroup>
-
- <!-- Full package version strings that are used in other parts of the build. -->
+ <!-- Tests/infrastructure dependency versions. -->
<PropertyGroup>
- <CoreClrPackageVersion>2.1.0-preview1-25829-02</CoreClrPackageVersion>
+ <CoreFxPackageVersion>4.5.0-preview1-25824-02</CoreFxPackageVersion>
+ <PlatformPackageVersion>2.1.0-preview1-25824-02</PlatformPackageVersion>
+ <PgoDataPackageVersion>99.99.99-master-20171025-1102</PgoDataPackageVersion>
+ <CoreClrPackageVersion>2.1.0-preview1-25824-51</CoreClrPackageVersion>
<XunitPackageVersion>2.2.0-beta2-build3300</XunitPackageVersion>
- <XUnitConsoleNetCoreVersion>1.0.2-prerelease-00177</XUnitConsoleNetCoreVersion>
- <XUnitPerformanceApiVersion>1.0.0-beta-build0007</XUnitPerformanceApiVersion>
- <MicrosoftDiagnosticsTracingLibraryVersion>1.0.3-alpha-experimental</MicrosoftDiagnosticsTracingLibraryVersion>
+ <XunitConsoleNetcorePackageVersion>1.0.2-prerelease-00177</XunitConsoleNetcorePackageVersion>
+ <XunitPerformanceApiPackageVersion>1.0.0-beta-build0007</XunitPerformanceApiPackageVersion>
+ <MicrosoftDiagnosticsTracingTraceEventPackageVersion>1.0.3-alpha-experimental</MicrosoftDiagnosticsTracingTraceEventPackageVersion>
<VCRuntimeVersion>1.2.0</VCRuntimeVersion>
</PropertyGroup>
<XmlUpdateStep Include="CoreFx">
<Path>$(MSBuildThisFileFullPath)</Path>
- <ElementName>CoreFxPackageVersion</ElementName>
+ <ElementName>MicrosoftPrivateCoreFxNETCoreAppPackageVersion</ElementName>
<PackageId>Microsoft.Private.CoreFx.NETCoreApp</PackageId>
</XmlUpdateStep>
<XmlUpdateStep Include="CoreFx">
<Path>$(MSBuildThisFileFullPath)</Path>
- <ElementName>PlatformPackageVersion</ElementName>
+ <ElementName>MicrosoftNETCorePlatformsPackageVersion</ElementName>
<PackageId>Microsoft.NETCore.Platforms</PackageId>
</XmlUpdateStep>
<XmlUpdateStep Include="CoreClr">
<Path>$(MSBuildThisFileFullPath)</Path>
- <ElementName>CoreClrPackageVersion</ElementName>
+ <ElementName>MicrosoftNETCoreRuntimeCoreCLRPackageVersion</ElementName>
<PackageId>Microsoft.NETCore.Runtime.CoreCLR</PackageId>
</XmlUpdateStep>
<UpdateStep Include="BuildTools">
<XUnitPerformanceApiDependency Include="xunit.performance.execution" />
<XUnitPerformanceApiDependency Include="xunit.performance.metrics" />
<StaticDependency Include="@(XUnitPerformanceApiDependency)">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</StaticDependency>
<StaticDependency Include="xunit.console.netcore">
- <Version>$(XUnitConsoleNetCoreVersion)</Version>
+ <Version>$(XunitConsoleNetcorePackageVersion)</Version>
</StaticDependency>
<DependencyBuildInfo Include="@(StaticDependency)">
<UpdateStableVersions>true</UpdateStableVersions>
</DependencyBuildInfo>
</ItemGroup>
+
+ <!-- Override isolated build dependency versions with versions from Repo API. -->
+ <Import Project="$(DotNetPackageVersionPropsPath)"
+ Condition="'$(DotNetPackageVersionPropsPath)' != ''" />
+
+ <!--
+ Map PackageVersion properties that don't match the Repo API naming conventions. This must be
+ defined after the DotNetPackageVersionPropsPath Import so overrides apply correctly.
+ -->
+ <PropertyGroup>
+ <!-- A single property used to get all CoreCLR packages in various places. -->
+ <CoreClrPackageVersion>$(MicrosoftNETCoreRuntimeCoreCLRPackageVersion)</CoreClrPackageVersion>
+ </PropertyGroup>
</Project>
<CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm64'">x64</CrossTargetComponentFolder>
<CrossTargetComponentFolder Condition="'$(PackagePlatform)' == 'arm'">x86</CrossTargetComponentFolder>
- <PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
- <SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
+ <PackageOutputPath Condition="'$(PackageOutputPath)' == ''">$(PackagesBinDir)/pkg/</PackageOutputPath>
+ <SymbolPackageOutputPath Condition="'$(SymbolPackageOutputPath)' == ''">$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath>
<PackageIndexFile>$(MSBuildThisFileDirectory)/src/.nuget/packageIndex.json</PackageIndexFile>
<!-- coreclr doesn't currently use the index so don't force it to be in sync -->
<!-- Provides properties for dependency versions and configures dependency verification/auto-upgrade. -->
<Import Project="$(ProjectDir)..\dependencies.props" />
+ <!-- Add test-specific package restore sources. -->
+ <PropertyGroup>
+ <RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
+ https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json;
+ $(RestoreSources)
+ </RestoreSources>
+ <RestoreSources Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'">
+ $(PackagesDir)AzureTransfer\;
+ $(RestoreSources)
+ </RestoreSources>
+ </PropertyGroup>
+
<!-- Use Roslyn Compilers to build -->
- <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false' and '$(RoslynIncompatibleMsbuildVersion)' != 'true'" />
- <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)') and '$(RoslynIncompatibleMsbuildVersion)' != 'true'" />
-
- <ItemGroup>
- <!-- Need to escape double forward slash (%2F) or MSBuild will normalize to one slash on Unix. -->
- <DotnetSourceList Include="$(IntermediateAzureFeed)" Condition="'$(OverwriteCoreClrPackageVersion)' == 'true'" />
- <DotnetSourceList Include="https:%2F%2Fdotnetfeed.blob.core.windows.net/dotnet-core/packages/index.json" />
- <DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
- <DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-core/api/v3/index.json" />
- <DotnetSourceList Include="https:%2F%2Fdotnet.myget.org/F/dotnet-buildtools/api/v3/index.json" />
- <DotnetSourceList Include="https:%2F%2Fapi.nuget.org/v3/index.json" />
- </ItemGroup>
-
+ <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'!='true' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false'" />
+ <Import Project="$(RoslynPropsFile)" Condition="'$(RunningOnUnix)'=='true' and Exists('$(RoslynPropsFile)')" />
+
<PropertyGroup Condition="'$(BuildAllProjects)'=='true'">
<!-- When we do a traversal build we get all packages up front, don't restore them again -->
<RestorePackages>false</RestorePackages>
<Version>2.1.1-beta</Version>
</PackageReference>
<PackageReference Include="xunit.performance.api">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
- <Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
+ <Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>9.0.1</Version>
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
- <Version>$(XUnitConsoleNetCoreVersion)</Version>
+ <Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Private.CoreFx.NETCoreApp">
- <Version>$(CoreFxPackageVersion)</Version>
+ <Version>$(MicrosoftPrivateCoreFxNETCoreAppPackageVersion)</Version>
</PackageReference>
<PackageReference Include="System.Memory">
- <Version>$(CoreFxPackageVersion)</Version>
+ <Version>$(MicrosoftPrivateCoreFxNETCoreAppPackageVersion)</Version>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe">
- <Version>$(CoreFxPackageVersion)</Version>
+ <Version>$(MicrosoftPrivateCoreFxNETCoreAppPackageVersion)</Version>
</PackageReference>
<PackageReference Include="System.Security.Permissions">
- <Version>$(CoreFxPackageVersion)</Version>
- </PackageReference>
+ <Version>$(MicrosoftPrivateCoreFxNETCoreAppPackageVersion)</Version>
</ItemGroup>
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.Platforms">
- <Version>$(PlatformPackageVersion)</Version>
+ <Version>$(MicrosoftNETCorePlatformsPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.DotNet.CoreCLR.TestDependencies">
<Version>1.0.0-prerelease</Version>
<Version>1.1.1</Version>
</PackageReference>
<PackageReference Include="xunit.performance.api">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
- <Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
+ <Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>2.0.0-preview2-25302-03</Version>
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
- <Version>$(XUnitConsoleNetCoreVersion)</Version>
+ <Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.performance.api">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
- <Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
+ <Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>2.0.0-preview2-25302-03</Version>
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
- <Version>$(XUnitConsoleNetCoreVersion)</Version>
+ <Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.performance.api">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
- <Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
+ <Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>2.0.0-preview2-25302-03</Version>
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
- <Version>$(XUnitConsoleNetCoreVersion)</Version>
+ <Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.Platforms">
- <Version>$(PlatformPackageVersion)</Version>
+ <Version>$(MicrosoftNETCorePlatformsPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit">
<Version>$(XunitPackageVersion)</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.performance.api">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.core">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.execution">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.performance.metrics">
- <Version>$(XUnitPerformanceApiVersion)</Version>
+ <Version>$(XunitPerformanceApiPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent">
- <Version>$(MicrosoftDiagnosticsTracingLibraryVersion)</Version>
+ <Version>$(MicrosoftDiagnosticsTracingTraceEventPackageVersion)</Version>
</PackageReference>
<PackageReference Include="Microsoft.NETCore.Platforms">
<Version>2.0.0-preview2-25302-03</Version>
<Version>$(XunitPackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.console.netcore">
- <Version>$(XUnitConsoleNetCoreVersion)</Version>
+ <Version>$(XunitConsoleNetcorePackageVersion)</Version>
</PackageReference>
<PackageReference Include="xunit.runner.utility">
<Version>$(XunitPackageVersion)</Version>