| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- commit db210af712e39b9e396e8f86826b0da42a3e5ee2
- Author: Nate McMaster <[email protected]>
- Date: Wed Nov 1 14:42:41 2017 -0700
- Pin tool and package versions to make builds more repeatable
-
- Part of aspnet/Universe#575
- diff --git a/.gitignore b/.gitignore
- index 94caeb71e6d..e062ff6d767 100644
- --- a/.gitignore
- +++ b/.gitignore
- @@ -30,4 +30,3 @@ project.lock.json
- .build/
- .testPublish/
- global.json
- -korebuild-lock.txt
- diff --git a/Directory.Build.props b/Directory.Build.props
- index 14b6c5e0988..a4d5ebdcd06 100644
- --- a/Directory.Build.props
- +++ b/Directory.Build.props
- @@ -1,5 +1,6 @@
- -<Project>
- - <Import Project="version.xml" />
- +<Project>
- + <Import Project="version.props" />
- + <Import Project="build\dependencies.props" />
-
- <PropertyGroup>
- <Product>Microsoft ASP.NET Core</Product>
- @@ -9,7 +10,6 @@
- <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)build\Key.snk</AssemblyOriginatorKeyFile>
- <SignAssembly>true</SignAssembly>
- <PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
- - <VersionSuffix Condition="'$(VersionSuffix)'!='' AND '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- </PropertyGroup>
- </Project>
- diff --git a/Directory.Build.targets b/Directory.Build.targets
- index bc118fd907b..e83ff95e395 100644
- --- a/Directory.Build.targets
- +++ b/Directory.Build.targets
- @@ -1,14 +1,5 @@
- -<Project InitialTargets="EnsureKoreBuildRestored">
- - <Target Name="EnsureKoreBuildRestored" Condition=" '$(KoreBuildRestoreTargetsImported)' != 'true' AND '$(MSBuildProjectName)' != 'BenchmarkDotNet.Autogenerated'">
- - <PropertyGroup>
- - <_BootstrapperFile Condition=" $([MSBuild]::IsOSUnixLike()) ">build.sh</_BootstrapperFile>
- - <_BootstrapperFile Condition="! $([MSBuild]::IsOSUnixLike()) ">build.cmd</_BootstrapperFile>
- - <_BootstrapperError>
- - Package references have not been pinned. Run './$(_BootstrapperFile) /t:Pin'.
- - Also, you can run './$(_BootstrapperFile) /t:Restore' which will pin *and* restore packages. '$(_BootstrapperFile)' can be found in '$(MSBuildThisFileDirectory)'.
- - </_BootstrapperError>
- - </PropertyGroup>
- -
- - <Error Code="KRB1001" Text="$(_BootstrapperError.Trim())" />
- - </Target>
- +<Project>
- + <PropertyGroup>
- + <RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">$(MicrosoftNETCoreApp20PackageVersion)</RuntimeFrameworkVersion>
- + </PropertyGroup>
- </Project>
- diff --git a/NuGet.config b/NuGet.config
- index 20060c934e4..4e8a1f6de15 100644
- --- a/NuGet.config
- +++ b/NuGet.config
- @@ -3,6 +3,7 @@
- <packageSources>
- <clear />
- <add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" />
- + <add key="AspNetCoreTools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
- <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
- </packageSources>
- </configuration>
- diff --git a/build/dependencies.props b/build/dependencies.props
- new file mode 100644
- index 00000000000..9bdf31e9dad
- --- /dev/null
- +++ b/build/dependencies.props
- @@ -0,0 +1,21 @@
- +<Project>
- + <PropertyGroup>
- + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
- + </PropertyGroup>
- + <PropertyGroup Label="Package Versions">
- + <InternalAspNetCoreSdkPackageVersion>2.1.0-preview1-15549</InternalAspNetCoreSdkPackageVersion>
- + <MicrosoftAspNetCoreAuthenticationCorePackageVersion>2.1.0-preview1-27496</MicrosoftAspNetCoreAuthenticationCorePackageVersion>
- + <MicrosoftAspNetCoreHostingPackageVersion>2.1.0-preview1-27496</MicrosoftAspNetCoreHostingPackageVersion>
- + <MicrosoftAspNetCoreTestingPackageVersion>2.1.0-preview1-27496</MicrosoftAspNetCoreTestingPackageVersion>
- + <MicrosoftExtensionsLoggingConsolePackageVersion>2.1.0-preview1-27496</MicrosoftExtensionsLoggingConsolePackageVersion>
- + <MicrosoftNETCoreApp20PackageVersion>2.0.0</MicrosoftNETCoreApp20PackageVersion>
- + <MicrosoftNetHttpHeadersPackageVersion>2.1.0-preview1-27496</MicrosoftNetHttpHeadersPackageVersion>
- + <MicrosoftNETTestSdkPackageVersion>15.3.0</MicrosoftNETTestSdkPackageVersion>
- + <MicrosoftWin32RegistryPackageVersion>4.4.0</MicrosoftWin32RegistryPackageVersion>
- + <SystemNetHttpWinHttpHandlerPackageVersion>4.4.0</SystemNetHttpWinHttpHandlerPackageVersion>
- + <SystemSecurityPrincipalWindowsPackageVersion>4.4.0</SystemSecurityPrincipalWindowsPackageVersion>
- + <XunitPackageVersion>2.3.0</XunitPackageVersion>
- + <XunitRunnerVisualStudioPackageVersion>2.3.0</XunitRunnerVisualStudioPackageVersion>
- + </PropertyGroup>
- + <Import Project="$(DotNetPackageVersionPropsPath)" Condition=" '$(DotNetPackageVersionPropsPath)' != '' " />
- +</Project>
- diff --git a/build/repo.props b/build/repo.props
- index 13fe1c296ab..b55e651b87d 100644
- --- a/build/repo.props
- +++ b/build/repo.props
- @@ -1,6 +1,7 @@
- <Project>
- - <ItemGroup>
- - <PackageLineup Include="Internal.AspNetCore.Universe.Lineup" Version="2.1.0-*" />
- - <PackageLineup Include="Internal.AspNetCore.Partners.Lineup" Version="2.1.0-*" />
- - </ItemGroup>
- + <PropertyGroup>
- + <!-- These properties are use by the automation that updates dependencies.props -->
- + <LineupPackageId>Internal.AspNetCore.Universe.Lineup</LineupPackageId>
- + <LineupPackageRestoreSource>https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json</LineupPackageRestoreSource>
- + </PropertyGroup>
- </Project>
- diff --git a/korebuild-lock.txt b/korebuild-lock.txt
- new file mode 100644
- index 00000000000..45463cc71ec
- --- /dev/null
- +++ b/korebuild-lock.txt
- @@ -0,0 +1,2 @@
- +version:2.1.0-preview1-15549
- +commithash:f570e08585fec510dd60cd4bfe8795388b757a95
- diff --git a/korebuild.json b/korebuild.json
- new file mode 100644
- index 00000000000..bd5d51a51b0
- --- /dev/null
- +++ b/korebuild.json
- @@ -0,0 +1,4 @@
- +{
- + "$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/dev/tools/korebuild.schema.json",
- + "channel": "dev"
- +}
- diff --git a/samples/HotAddSample/HotAddSample.csproj b/samples/HotAddSample/HotAddSample.csproj
- index a44d7e2f0ab..49d0e734635 100644
- --- a/samples/HotAddSample/HotAddSample.csproj
- +++ b/samples/HotAddSample/HotAddSample.csproj
- @@ -11,6 +11,6 @@
- </ItemGroup>
-
- <ItemGroup>
- - <PackageReference Include="Microsoft.Extensions.Logging.Console" />
- + <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsolePackageVersion)" />
- </ItemGroup>
- </Project>
- diff --git a/samples/SelfHostServer/SelfHostServer.csproj b/samples/SelfHostServer/SelfHostServer.csproj
- index a44d7e2f0ab..49d0e734635 100644
- --- a/samples/SelfHostServer/SelfHostServer.csproj
- +++ b/samples/SelfHostServer/SelfHostServer.csproj
- @@ -11,6 +11,6 @@
- </ItemGroup>
-
- <ItemGroup>
- - <PackageReference Include="Microsoft.Extensions.Logging.Console" />
- + <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsolePackageVersion)" />
- </ItemGroup>
- </Project>
- diff --git a/src/Directory.Build.props b/src/Directory.Build.props
- index 9d9a3de33ac..4b89a431e7f 100644
- --- a/src/Directory.Build.props
- +++ b/src/Directory.Build.props
- @@ -1,7 +1,7 @@
- -<Project>
- +<Project>
- <Import Project="..\Directory.Build.props" />
-
- <ItemGroup>
- - <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" />
- + <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
- </ItemGroup>
- </Project>
- diff --git a/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj b/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj
- index 592368a043e..9be8bad15e0 100644
- --- a/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj
- +++ b/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj
- @@ -14,11 +14,11 @@
- </ItemGroup>
-
- <ItemGroup>
- - <PackageReference Include="Microsoft.AspNetCore.Authentication.Core" />
- - <PackageReference Include="Microsoft.AspNetCore.Hosting" />
- - <PackageReference Include="Microsoft.Net.Http.Headers" />
- - <PackageReference Include="Microsoft.Win32.Registry" />
- - <PackageReference Include="System.Security.Principal.Windows" />
- + <PackageReference Include="Microsoft.AspNetCore.Authentication.Core" Version="$(MicrosoftAspNetCoreAuthenticationCorePackageVersion)" />
- + <PackageReference Include="Microsoft.AspNetCore.Hosting" Version="$(MicrosoftAspNetCoreHostingPackageVersion)" />
- + <PackageReference Include="Microsoft.Net.Http.Headers" Version="$(MicrosoftNetHttpHeadersPackageVersion)" />
- + <PackageReference Include="Microsoft.Win32.Registry" Version="$(MicrosoftWin32RegistryPackageVersion)" />
- + <PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsPackageVersion)" />
- </ItemGroup>
-
- </Project>
- diff --git a/test/Directory.Build.props b/test/Directory.Build.props
- index 82ba457f183..c79812719aa 100644
- --- a/test/Directory.Build.props
- +++ b/test/Directory.Build.props
- @@ -1,11 +1,11 @@
- -<Project>
- +<Project>
- <Import Project="..\Directory.Build.props" />
-
- <ItemGroup>
- - <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" />
- - <PackageReference Include="Microsoft.AspNetCore.Testing" />
- - <PackageReference Include="Microsoft.NET.Test.Sdk" />
- - <PackageReference Include="xunit" />
- - <PackageReference Include="xunit.runner.visualstudio" />
- + <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
- + <PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
- + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPackageVersion)" />
- + <PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
- + <PackageReference Include="xunit.runner.visualstudio" Version="$(XunitRunnerVisualStudioPackageVersion)" />
- </ItemGroup>
- </Project>
- diff --git a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj
- index ee9812fa488..ed1c3689139 100644
- --- a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj
- +++ b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj
- @@ -10,7 +10,7 @@
- </ItemGroup>
-
- <ItemGroup>
- - <PackageReference Include="System.Net.Http.WinHttpHandler" />
- + <PackageReference Include="System.Net.Http.WinHttpHandler" Version="$(SystemNetHttpWinHttpHandlerPackageVersion)" />
- </ItemGroup>
-
- </Project>
- diff --git a/version.props b/version.props
- new file mode 100644
- index 00000000000..5c4a7c32d1e
- --- /dev/null
- +++ b/version.props
- @@ -0,0 +1,10 @@
- +<Project>
- + <PropertyGroup>
- + <VersionPrefix>2.1.0</VersionPrefix>
- + <VersionSuffix>preview1</VersionSuffix>
- + <PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' == 'rtm' ">$(VersionPrefix)</PackageVersion>
- + <PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' != 'rtm' ">$(VersionPrefix)-$(VersionSuffix)-final</PackageVersion>
- + <BuildNumber Condition="'$(BuildNumber)' == ''">t000</BuildNumber>
- + <VersionSuffix Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
- + </PropertyGroup>
- +</Project>
- diff --git a/version.xml b/version.xml
- deleted file mode 100644
- index 3c05022b7d7..00000000000
- --- a/version.xml
- +++ /dev/null
- @@ -1,8 +0,0 @@
- -<!-- This file may be overwritten by automation. -->
- -<Project>
- - <PropertyGroup>
- - <KoreBuildChannel>dev</KoreBuildChannel>
- - <VersionPrefix>2.1.0</VersionPrefix>
- - <VersionSuffix>preview1</VersionSuffix>
- - </PropertyGroup>
- -</Project>
|