HttpSysServer 324 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. commit db210af712e39b9e396e8f86826b0da42a3e5ee2
  2. Author: Nate McMaster <[email protected]>
  3. Date: Wed Nov 1 14:42:41 2017 -0700
  4. Pin tool and package versions to make builds more repeatable
  5. Part of aspnet/Universe#575
  6. diff --git a/.gitignore b/.gitignore
  7. index 94caeb71e6d..e062ff6d767 100644
  8. --- a/.gitignore
  9. +++ b/.gitignore
  10. @@ -30,4 +30,3 @@ project.lock.json
  11. .build/
  12. .testPublish/
  13. global.json
  14. -korebuild-lock.txt
  15. diff --git a/Directory.Build.props b/Directory.Build.props
  16. index 14b6c5e0988..a4d5ebdcd06 100644
  17. --- a/Directory.Build.props
  18. +++ b/Directory.Build.props
  19. @@ -1,5 +1,6 @@
  20. -<Project>
  21. - <Import Project="version.xml" />
  22. +<Project>
  23. + <Import Project="version.props" />
  24. + <Import Project="build\dependencies.props" />
  25. <PropertyGroup>
  26. <Product>Microsoft ASP.NET Core</Product>
  27. @@ -9,7 +10,6 @@
  28. <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)build\Key.snk</AssemblyOriginatorKeyFile>
  29. <SignAssembly>true</SignAssembly>
  30. <PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
  31. - <VersionSuffix Condition="'$(VersionSuffix)'!='' AND '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
  32. <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
  33. </PropertyGroup>
  34. </Project>
  35. diff --git a/Directory.Build.targets b/Directory.Build.targets
  36. index bc118fd907b..e83ff95e395 100644
  37. --- a/Directory.Build.targets
  38. +++ b/Directory.Build.targets
  39. @@ -1,14 +1,5 @@
  40. -<Project InitialTargets="EnsureKoreBuildRestored">
  41. - <Target Name="EnsureKoreBuildRestored" Condition=" '$(KoreBuildRestoreTargetsImported)' != 'true' AND '$(MSBuildProjectName)' != 'BenchmarkDotNet.Autogenerated'">
  42. - <PropertyGroup>
  43. - <_BootstrapperFile Condition=" $([MSBuild]::IsOSUnixLike()) ">build.sh</_BootstrapperFile>
  44. - <_BootstrapperFile Condition="! $([MSBuild]::IsOSUnixLike()) ">build.cmd</_BootstrapperFile>
  45. - <_BootstrapperError>
  46. - Package references have not been pinned. Run './$(_BootstrapperFile) /t:Pin'.
  47. - Also, you can run './$(_BootstrapperFile) /t:Restore' which will pin *and* restore packages. '$(_BootstrapperFile)' can be found in '$(MSBuildThisFileDirectory)'.
  48. - </_BootstrapperError>
  49. - </PropertyGroup>
  50. -
  51. - <Error Code="KRB1001" Text="$(_BootstrapperError.Trim())" />
  52. - </Target>
  53. +<Project>
  54. + <PropertyGroup>
  55. + <RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">$(MicrosoftNETCoreApp20PackageVersion)</RuntimeFrameworkVersion>
  56. + </PropertyGroup>
  57. </Project>
  58. diff --git a/NuGet.config b/NuGet.config
  59. index 20060c934e4..4e8a1f6de15 100644
  60. --- a/NuGet.config
  61. +++ b/NuGet.config
  62. @@ -3,6 +3,7 @@
  63. <packageSources>
  64. <clear />
  65. <add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" />
  66. + <add key="AspNetCoreTools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
  67. <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
  68. </packageSources>
  69. </configuration>
  70. diff --git a/build/dependencies.props b/build/dependencies.props
  71. new file mode 100644
  72. index 00000000000..9bdf31e9dad
  73. --- /dev/null
  74. +++ b/build/dependencies.props
  75. @@ -0,0 +1,21 @@
  76. +<Project>
  77. + <PropertyGroup>
  78. + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
  79. + </PropertyGroup>
  80. + <PropertyGroup Label="Package Versions">
  81. + <InternalAspNetCoreSdkPackageVersion>2.1.0-preview1-15549</InternalAspNetCoreSdkPackageVersion>
  82. + <MicrosoftAspNetCoreAuthenticationCorePackageVersion>2.1.0-preview1-27496</MicrosoftAspNetCoreAuthenticationCorePackageVersion>
  83. + <MicrosoftAspNetCoreHostingPackageVersion>2.1.0-preview1-27496</MicrosoftAspNetCoreHostingPackageVersion>
  84. + <MicrosoftAspNetCoreTestingPackageVersion>2.1.0-preview1-27496</MicrosoftAspNetCoreTestingPackageVersion>
  85. + <MicrosoftExtensionsLoggingConsolePackageVersion>2.1.0-preview1-27496</MicrosoftExtensionsLoggingConsolePackageVersion>
  86. + <MicrosoftNETCoreApp20PackageVersion>2.0.0</MicrosoftNETCoreApp20PackageVersion>
  87. + <MicrosoftNetHttpHeadersPackageVersion>2.1.0-preview1-27496</MicrosoftNetHttpHeadersPackageVersion>
  88. + <MicrosoftNETTestSdkPackageVersion>15.3.0</MicrosoftNETTestSdkPackageVersion>
  89. + <MicrosoftWin32RegistryPackageVersion>4.4.0</MicrosoftWin32RegistryPackageVersion>
  90. + <SystemNetHttpWinHttpHandlerPackageVersion>4.4.0</SystemNetHttpWinHttpHandlerPackageVersion>
  91. + <SystemSecurityPrincipalWindowsPackageVersion>4.4.0</SystemSecurityPrincipalWindowsPackageVersion>
  92. + <XunitPackageVersion>2.3.0</XunitPackageVersion>
  93. + <XunitRunnerVisualStudioPackageVersion>2.3.0</XunitRunnerVisualStudioPackageVersion>
  94. + </PropertyGroup>
  95. + <Import Project="$(DotNetPackageVersionPropsPath)" Condition=" '$(DotNetPackageVersionPropsPath)' != '' " />
  96. +</Project>
  97. diff --git a/build/repo.props b/build/repo.props
  98. index 13fe1c296ab..b55e651b87d 100644
  99. --- a/build/repo.props
  100. +++ b/build/repo.props
  101. @@ -1,6 +1,7 @@
  102. <Project>
  103. - <ItemGroup>
  104. - <PackageLineup Include="Internal.AspNetCore.Universe.Lineup" Version="2.1.0-*" />
  105. - <PackageLineup Include="Internal.AspNetCore.Partners.Lineup" Version="2.1.0-*" />
  106. - </ItemGroup>
  107. + <PropertyGroup>
  108. + <!-- These properties are use by the automation that updates dependencies.props -->
  109. + <LineupPackageId>Internal.AspNetCore.Universe.Lineup</LineupPackageId>
  110. + <LineupPackageRestoreSource>https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json</LineupPackageRestoreSource>
  111. + </PropertyGroup>
  112. </Project>
  113. diff --git a/korebuild-lock.txt b/korebuild-lock.txt
  114. new file mode 100644
  115. index 00000000000..45463cc71ec
  116. --- /dev/null
  117. +++ b/korebuild-lock.txt
  118. @@ -0,0 +1,2 @@
  119. +version:2.1.0-preview1-15549
  120. +commithash:f570e08585fec510dd60cd4bfe8795388b757a95
  121. diff --git a/korebuild.json b/korebuild.json
  122. new file mode 100644
  123. index 00000000000..bd5d51a51b0
  124. --- /dev/null
  125. +++ b/korebuild.json
  126. @@ -0,0 +1,4 @@
  127. +{
  128. + "$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/dev/tools/korebuild.schema.json",
  129. + "channel": "dev"
  130. +}
  131. diff --git a/samples/HotAddSample/HotAddSample.csproj b/samples/HotAddSample/HotAddSample.csproj
  132. index a44d7e2f0ab..49d0e734635 100644
  133. --- a/samples/HotAddSample/HotAddSample.csproj
  134. +++ b/samples/HotAddSample/HotAddSample.csproj
  135. @@ -11,6 +11,6 @@
  136. </ItemGroup>
  137. <ItemGroup>
  138. - <PackageReference Include="Microsoft.Extensions.Logging.Console" />
  139. + <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsolePackageVersion)" />
  140. </ItemGroup>
  141. </Project>
  142. diff --git a/samples/SelfHostServer/SelfHostServer.csproj b/samples/SelfHostServer/SelfHostServer.csproj
  143. index a44d7e2f0ab..49d0e734635 100644
  144. --- a/samples/SelfHostServer/SelfHostServer.csproj
  145. +++ b/samples/SelfHostServer/SelfHostServer.csproj
  146. @@ -11,6 +11,6 @@
  147. </ItemGroup>
  148. <ItemGroup>
  149. - <PackageReference Include="Microsoft.Extensions.Logging.Console" />
  150. + <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsolePackageVersion)" />
  151. </ItemGroup>
  152. </Project>
  153. diff --git a/src/Directory.Build.props b/src/Directory.Build.props
  154. index 9d9a3de33ac..4b89a431e7f 100644
  155. --- a/src/Directory.Build.props
  156. +++ b/src/Directory.Build.props
  157. @@ -1,7 +1,7 @@
  158. -<Project>
  159. +<Project>
  160. <Import Project="..\Directory.Build.props" />
  161. <ItemGroup>
  162. - <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" />
  163. + <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
  164. </ItemGroup>
  165. </Project>
  166. diff --git a/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj b/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj
  167. index 592368a043e..9be8bad15e0 100644
  168. --- a/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj
  169. +++ b/src/Microsoft.AspNetCore.Server.HttpSys/Microsoft.AspNetCore.Server.HttpSys.csproj
  170. @@ -14,11 +14,11 @@
  171. </ItemGroup>
  172. <ItemGroup>
  173. - <PackageReference Include="Microsoft.AspNetCore.Authentication.Core" />
  174. - <PackageReference Include="Microsoft.AspNetCore.Hosting" />
  175. - <PackageReference Include="Microsoft.Net.Http.Headers" />
  176. - <PackageReference Include="Microsoft.Win32.Registry" />
  177. - <PackageReference Include="System.Security.Principal.Windows" />
  178. + <PackageReference Include="Microsoft.AspNetCore.Authentication.Core" Version="$(MicrosoftAspNetCoreAuthenticationCorePackageVersion)" />
  179. + <PackageReference Include="Microsoft.AspNetCore.Hosting" Version="$(MicrosoftAspNetCoreHostingPackageVersion)" />
  180. + <PackageReference Include="Microsoft.Net.Http.Headers" Version="$(MicrosoftNetHttpHeadersPackageVersion)" />
  181. + <PackageReference Include="Microsoft.Win32.Registry" Version="$(MicrosoftWin32RegistryPackageVersion)" />
  182. + <PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsPackageVersion)" />
  183. </ItemGroup>
  184. </Project>
  185. diff --git a/test/Directory.Build.props b/test/Directory.Build.props
  186. index 82ba457f183..c79812719aa 100644
  187. --- a/test/Directory.Build.props
  188. +++ b/test/Directory.Build.props
  189. @@ -1,11 +1,11 @@
  190. -<Project>
  191. +<Project>
  192. <Import Project="..\Directory.Build.props" />
  193. <ItemGroup>
  194. - <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" />
  195. - <PackageReference Include="Microsoft.AspNetCore.Testing" />
  196. - <PackageReference Include="Microsoft.NET.Test.Sdk" />
  197. - <PackageReference Include="xunit" />
  198. - <PackageReference Include="xunit.runner.visualstudio" />
  199. + <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
  200. + <PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
  201. + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPackageVersion)" />
  202. + <PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
  203. + <PackageReference Include="xunit.runner.visualstudio" Version="$(XunitRunnerVisualStudioPackageVersion)" />
  204. </ItemGroup>
  205. </Project>
  206. 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
  207. index ee9812fa488..ed1c3689139 100644
  208. --- a/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj
  209. +++ b/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests.csproj
  210. @@ -10,7 +10,7 @@
  211. </ItemGroup>
  212. <ItemGroup>
  213. - <PackageReference Include="System.Net.Http.WinHttpHandler" />
  214. + <PackageReference Include="System.Net.Http.WinHttpHandler" Version="$(SystemNetHttpWinHttpHandlerPackageVersion)" />
  215. </ItemGroup>
  216. </Project>
  217. diff --git a/version.props b/version.props
  218. new file mode 100644
  219. index 00000000000..5c4a7c32d1e
  220. --- /dev/null
  221. +++ b/version.props
  222. @@ -0,0 +1,10 @@
  223. +<Project>
  224. + <PropertyGroup>
  225. + <VersionPrefix>2.1.0</VersionPrefix>
  226. + <VersionSuffix>preview1</VersionSuffix>
  227. + <PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' == 'rtm' ">$(VersionPrefix)</PackageVersion>
  228. + <PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' != 'rtm' ">$(VersionPrefix)-$(VersionSuffix)-final</PackageVersion>
  229. + <BuildNumber Condition="'$(BuildNumber)' == ''">t000</BuildNumber>
  230. + <VersionSuffix Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
  231. + </PropertyGroup>
  232. +</Project>
  233. diff --git a/version.xml b/version.xml
  234. deleted file mode 100644
  235. index 3c05022b7d7..00000000000
  236. --- a/version.xml
  237. +++ /dev/null
  238. @@ -1,8 +0,0 @@
  239. -<!-- This file may be overwritten by automation. -->
  240. -<Project>
  241. - <PropertyGroup>
  242. - <KoreBuildChannel>dev</KoreBuildChannel>
  243. - <VersionPrefix>2.1.0</VersionPrefix>
  244. - <VersionSuffix>preview1</VersionSuffix>
  245. - </PropertyGroup>
  246. -</Project>