StaticFiles 324 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. commit 555f5c68eea02e50d4833679ae64151dd9d5d62b
  2. Author: Nate McMaster <[email protected]>
  3. Date: Wed Nov 1 16:47:47 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 758c79a1c1d..bcc811de9ab 100644
  8. --- a/.gitignore
  9. +++ b/.gitignore
  10. @@ -29,4 +29,3 @@ project.lock.json
  11. .testPublish/
  12. /.vs/
  13. global.json
  14. -korebuild-lock.txt
  15. diff --git a/Directory.Build.props b/Directory.Build.props
  16. index f8dbc054d04..3c193bdda12 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,10 +10,7 @@
  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. - <!-- ignore failures in xunit.analyzers 0.6.1 -->
  34. - <NoWarn>$(NoWarn);AD0001</NoWarn>
  35. </PropertyGroup>
  36. </Project>
  37. diff --git a/Directory.Build.targets b/Directory.Build.targets
  38. index bc118fd907b..e83ff95e395 100644
  39. --- a/Directory.Build.targets
  40. +++ b/Directory.Build.targets
  41. @@ -1,14 +1,5 @@
  42. -<Project InitialTargets="EnsureKoreBuildRestored">
  43. - <Target Name="EnsureKoreBuildRestored" Condition=" '$(KoreBuildRestoreTargetsImported)' != 'true' AND '$(MSBuildProjectName)' != 'BenchmarkDotNet.Autogenerated'">
  44. - <PropertyGroup>
  45. - <_BootstrapperFile Condition=" $([MSBuild]::IsOSUnixLike()) ">build.sh</_BootstrapperFile>
  46. - <_BootstrapperFile Condition="! $([MSBuild]::IsOSUnixLike()) ">build.cmd</_BootstrapperFile>
  47. - <_BootstrapperError>
  48. - Package references have not been pinned. Run './$(_BootstrapperFile) /t:Pin'.
  49. - Also, you can run './$(_BootstrapperFile) /t:Restore' which will pin *and* restore packages. '$(_BootstrapperFile)' can be found in '$(MSBuildThisFileDirectory)'.
  50. - </_BootstrapperError>
  51. - </PropertyGroup>
  52. -
  53. - <Error Code="KRB1001" Text="$(_BootstrapperError.Trim())" />
  54. - </Target>
  55. +<Project>
  56. + <PropertyGroup>
  57. + <RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">$(MicrosoftNETCoreApp20PackageVersion)</RuntimeFrameworkVersion>
  58. + </PropertyGroup>
  59. </Project>
  60. diff --git a/NuGet.config b/NuGet.config
  61. index 20060c934e4..4e8a1f6de15 100644
  62. --- a/NuGet.config
  63. +++ b/NuGet.config
  64. @@ -3,6 +3,7 @@
  65. <packageSources>
  66. <clear />
  67. <add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" />
  68. + <add key="AspNetCoreTools" value="https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json" />
  69. <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
  70. </packageSources>
  71. </configuration>
  72. diff --git a/build/dependencies.props b/build/dependencies.props
  73. new file mode 100644
  74. index 00000000000..a45d301ffc8
  75. --- /dev/null
  76. +++ b/build/dependencies.props
  77. @@ -0,0 +1,28 @@
  78. +<Project>
  79. + <PropertyGroup>
  80. + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
  81. + </PropertyGroup>
  82. + <PropertyGroup Label="Package Versions">
  83. + <InternalAspNetCoreSdkPackageVersion>2.1.0-preview1-15550</InternalAspNetCoreSdkPackageVersion>
  84. + <MicrosoftAspNetCoreHostingAbstractionsPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreHostingAbstractionsPackageVersion>
  85. + <MicrosoftAspNetCoreHttpExtensionsPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreHttpExtensionsPackageVersion>
  86. + <MicrosoftAspNetCoreHttpPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreHttpPackageVersion>
  87. + <MicrosoftAspNetCoreServerHttpSysPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreServerHttpSysPackageVersion>
  88. + <MicrosoftAspNetCoreServerIISIntegrationPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreServerIISIntegrationPackageVersion>
  89. + <MicrosoftAspNetCoreServerIntegrationTestingPackageVersion>0.5.0-preview1-27498</MicrosoftAspNetCoreServerIntegrationTestingPackageVersion>
  90. + <MicrosoftAspNetCoreServerKestrelPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreServerKestrelPackageVersion>
  91. + <MicrosoftAspNetCoreTestHostPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreTestHostPackageVersion>
  92. + <MicrosoftAspNetCoreTestingPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreTestingPackageVersion>
  93. + <MicrosoftExtensionsFileProvidersAbstractionsPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsFileProvidersAbstractionsPackageVersion>
  94. + <MicrosoftExtensionsLoggingAbstractionsPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsLoggingAbstractionsPackageVersion>
  95. + <MicrosoftExtensionsLoggingConsolePackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsLoggingConsolePackageVersion>
  96. + <MicrosoftExtensionsLoggingTestingPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsLoggingTestingPackageVersion>
  97. + <MicrosoftExtensionsWebEncodersPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsWebEncodersPackageVersion>
  98. + <MicrosoftNETCoreApp20PackageVersion>2.0.0</MicrosoftNETCoreApp20PackageVersion>
  99. + <MicrosoftNETTestSdkPackageVersion>15.3.0</MicrosoftNETTestSdkPackageVersion>
  100. + <XunitAnalyzersPackageVersion>0.7.0</XunitAnalyzersPackageVersion>
  101. + <XunitPackageVersion>2.3.0</XunitPackageVersion>
  102. + <XunitRunnerVisualStudioPackageVersion>2.3.0</XunitRunnerVisualStudioPackageVersion>
  103. + </PropertyGroup>
  104. + <Import Project="$(DotNetPackageVersionPropsPath)" Condition=" '$(DotNetPackageVersionPropsPath)' != '' " />
  105. +</Project>
  106. diff --git a/build/repo.props b/build/repo.props
  107. index 13fe1c296ab..b55e651b87d 100644
  108. --- a/build/repo.props
  109. +++ b/build/repo.props
  110. @@ -1,6 +1,7 @@
  111. <Project>
  112. - <ItemGroup>
  113. - <PackageLineup Include="Internal.AspNetCore.Universe.Lineup" Version="2.1.0-*" />
  114. - <PackageLineup Include="Internal.AspNetCore.Partners.Lineup" Version="2.1.0-*" />
  115. - </ItemGroup>
  116. + <PropertyGroup>
  117. + <!-- These properties are use by the automation that updates dependencies.props -->
  118. + <LineupPackageId>Internal.AspNetCore.Universe.Lineup</LineupPackageId>
  119. + <LineupPackageRestoreSource>https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json</LineupPackageRestoreSource>
  120. + </PropertyGroup>
  121. </Project>
  122. diff --git a/korebuild-lock.txt b/korebuild-lock.txt
  123. new file mode 100644
  124. index 00000000000..36d80560371
  125. --- /dev/null
  126. +++ b/korebuild-lock.txt
  127. @@ -0,0 +1,2 @@
  128. +version:2.1.0-preview1-15550
  129. +commithash:0dd080d0d87b4d1966ec0af9961dc8bacc04f84f
  130. diff --git a/korebuild.json b/korebuild.json
  131. new file mode 100644
  132. index 00000000000..bd5d51a51b0
  133. --- /dev/null
  134. +++ b/korebuild.json
  135. @@ -0,0 +1,4 @@
  136. +{
  137. + "$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/dev/tools/korebuild.schema.json",
  138. + "channel": "dev"
  139. +}
  140. diff --git a/samples/StaticFileSample/StaticFileSample.csproj b/samples/StaticFileSample/StaticFileSample.csproj
  141. index 6b4b91a5bed..bf7b35d8255 100644
  142. --- a/samples/StaticFileSample/StaticFileSample.csproj
  143. +++ b/samples/StaticFileSample/StaticFileSample.csproj
  144. @@ -9,9 +9,9 @@
  145. </ItemGroup>
  146. <ItemGroup>
  147. - <PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" />
  148. - <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" />
  149. - <PackageReference Include="Microsoft.Extensions.Logging.Console" />
  150. + <PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="$(MicrosoftAspNetCoreServerIISIntegrationPackageVersion)" />
  151. + <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(MicrosoftAspNetCoreServerKestrelPackageVersion)" />
  152. + <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsolePackageVersion)" />
  153. </ItemGroup>
  154. </Project>
  155. diff --git a/src/Directory.Build.props b/src/Directory.Build.props
  156. index 9d9a3de33ac..1e0980f6633 100644
  157. --- a/src/Directory.Build.props
  158. +++ b/src/Directory.Build.props
  159. @@ -2,6 +2,6 @@
  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.StaticFiles/Microsoft.AspNetCore.StaticFiles.csproj b/src/Microsoft.AspNetCore.StaticFiles/Microsoft.AspNetCore.StaticFiles.csproj
  167. index 931df730d05..46d506ff58b 100644
  168. --- a/src/Microsoft.AspNetCore.StaticFiles/Microsoft.AspNetCore.StaticFiles.csproj
  169. +++ b/src/Microsoft.AspNetCore.StaticFiles/Microsoft.AspNetCore.StaticFiles.csproj
  170. @@ -13,11 +13,11 @@
  171. </ItemGroup>
  172. <ItemGroup>
  173. - <PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" />
  174. - <PackageReference Include="Microsoft.AspNetCore.Http.Extensions" />
  175. - <PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" />
  176. - <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
  177. - <PackageReference Include="Microsoft.Extensions.WebEncoders" />
  178. + <PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="$(MicrosoftAspNetCoreHostingAbstractionsPackageVersion)" />
  179. + <PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
  180. + <PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" Version="$(MicrosoftExtensionsFileProvidersAbstractionsPackageVersion)" />
  181. + <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="$(MicrosoftExtensionsLoggingAbstractionsPackageVersion)" />
  182. + <PackageReference Include="Microsoft.Extensions.WebEncoders" Version="$(MicrosoftExtensionsWebEncodersPackageVersion)" />
  183. </ItemGroup>
  184. </Project>
  185. diff --git a/test/Directory.Build.props b/test/Directory.Build.props
  186. index 724f34b0bbb..19544e342c0 100644
  187. --- a/test/Directory.Build.props
  188. +++ b/test/Directory.Build.props
  189. @@ -2,11 +2,11 @@
  190. <Import Project="..\Directory.Build.props" />
  191. <ItemGroup>
  192. - <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" />
  193. - <PackageReference Include="Microsoft.AspNetCore.Testing" />
  194. - <PackageReference Include="Microsoft.NET.Test.Sdk" />
  195. - <PackageReference Include="xunit" />
  196. - <PackageReference Include="xunit.analyzers" />
  197. - <PackageReference Include="xunit.runner.visualstudio" />
  198. + <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
  199. + <PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
  200. + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPackageVersion)" />
  201. + <PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
  202. + <PackageReference Include="xunit.analyzers" Version="$(XunitAnalyzersPackageVersion)" />
  203. + <PackageReference Include="xunit.runner.visualstudio" Version="$(XunitRunnerVisualStudioPackageVersion)" />
  204. </ItemGroup>
  205. </Project>
  206. diff --git a/test/Microsoft.AspNetCore.RangeHelper.Sources.Test/Microsoft.AspNetCore.RangeHelper.Sources.Test.csproj b/test/Microsoft.AspNetCore.RangeHelper.Sources.Test/Microsoft.AspNetCore.RangeHelper.Sources.Test.csproj
  207. index aa116e515ac..0d2cdd46ee8 100644
  208. --- a/test/Microsoft.AspNetCore.RangeHelper.Sources.Test/Microsoft.AspNetCore.RangeHelper.Sources.Test.csproj
  209. +++ b/test/Microsoft.AspNetCore.RangeHelper.Sources.Test/Microsoft.AspNetCore.RangeHelper.Sources.Test.csproj
  210. @@ -10,8 +10,8 @@
  211. </ItemGroup>
  212. <ItemGroup>
  213. - <PackageReference Include="Microsoft.AspNetCore.Http" />
  214. - <PackageReference Include="Microsoft.AspNetCore.Http.Extensions" />
  215. + <PackageReference Include="Microsoft.AspNetCore.Http" Version="$(MicrosoftAspNetCoreHttpPackageVersion)" />
  216. + <PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
  217. </ItemGroup>
  218. </Project>
  219. diff --git a/test/Microsoft.AspNetCore.StaticFiles.FunctionalTests/Microsoft.AspNetCore.StaticFiles.FunctionalTests.csproj b/test/Microsoft.AspNetCore.StaticFiles.FunctionalTests/Microsoft.AspNetCore.StaticFiles.FunctionalTests.csproj
  220. index daf3b0d8868..3eaee4f788e 100644
  221. --- a/test/Microsoft.AspNetCore.StaticFiles.FunctionalTests/Microsoft.AspNetCore.StaticFiles.FunctionalTests.csproj
  222. +++ b/test/Microsoft.AspNetCore.StaticFiles.FunctionalTests/Microsoft.AspNetCore.StaticFiles.FunctionalTests.csproj
  223. @@ -28,10 +28,10 @@
  224. </ItemGroup>
  225. <ItemGroup>
  226. - <PackageReference Include="Microsoft.AspNetCore.Server.HttpSys" />
  227. - <PackageReference Include="Microsoft.AspNetCore.Server.IntegrationTesting" />
  228. - <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" />
  229. - <PackageReference Include="Microsoft.Extensions.Logging.Testing" />
  230. + <PackageReference Include="Microsoft.AspNetCore.Server.HttpSys" Version="$(MicrosoftAspNetCoreServerHttpSysPackageVersion)" />
  231. + <PackageReference Include="Microsoft.AspNetCore.Server.IntegrationTesting" Version="$(MicrosoftAspNetCoreServerIntegrationTestingPackageVersion)" />
  232. + <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(MicrosoftAspNetCoreServerKestrelPackageVersion)" />
  233. + <PackageReference Include="Microsoft.Extensions.Logging.Testing" Version="$(MicrosoftExtensionsLoggingTestingPackageVersion)" />
  234. </ItemGroup>
  235. </Project>
  236. diff --git a/test/Microsoft.AspNetCore.StaticFiles.Tests/Microsoft.AspNetCore.StaticFiles.Tests.csproj b/test/Microsoft.AspNetCore.StaticFiles.Tests/Microsoft.AspNetCore.StaticFiles.Tests.csproj
  237. index 4d9552e2081..664548a0610 100644
  238. --- a/test/Microsoft.AspNetCore.StaticFiles.Tests/Microsoft.AspNetCore.StaticFiles.Tests.csproj
  239. +++ b/test/Microsoft.AspNetCore.StaticFiles.Tests/Microsoft.AspNetCore.StaticFiles.Tests.csproj
  240. @@ -18,7 +18,7 @@
  241. </ItemGroup>
  242. <ItemGroup>
  243. - <PackageReference Include="Microsoft.AspNetCore.TestHost" />
  244. + <PackageReference Include="Microsoft.AspNetCore.TestHost" Version="$(MicrosoftAspNetCoreTestHostPackageVersion)" />
  245. </ItemGroup>
  246. </Project>
  247. diff --git a/version.props b/version.props
  248. new file mode 100644
  249. index 00000000000..5c4a7c32d1e
  250. --- /dev/null
  251. +++ b/version.props
  252. @@ -0,0 +1,10 @@
  253. +<Project>
  254. + <PropertyGroup>
  255. + <VersionPrefix>2.1.0</VersionPrefix>
  256. + <VersionSuffix>preview1</VersionSuffix>
  257. + <PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' == 'rtm' ">$(VersionPrefix)</PackageVersion>
  258. + <PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' != 'rtm' ">$(VersionPrefix)-$(VersionSuffix)-final</PackageVersion>
  259. + <BuildNumber Condition="'$(BuildNumber)' == ''">t000</BuildNumber>
  260. + <VersionSuffix Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
  261. + </PropertyGroup>
  262. +</Project>
  263. diff --git a/version.xml b/version.xml
  264. deleted file mode 100644
  265. index 3c05022b7d7..00000000000
  266. --- a/version.xml
  267. +++ /dev/null
  268. @@ -1,8 +0,0 @@
  269. -<!-- This file may be overwritten by automation. -->
  270. -<Project>
  271. - <PropertyGroup>
  272. - <KoreBuildChannel>dev</KoreBuildChannel>
  273. - <VersionPrefix>2.1.0</VersionPrefix>
  274. - <VersionSuffix>preview1</VersionSuffix>
  275. - </PropertyGroup>
  276. -</Project>