Localization 324 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. commit 115271d1cc37868dc0bb1ce76ccd32e0ebeb2a28
  2. Author: Nate McMaster <[email protected]>
  3. Date: Wed Nov 1 16:19:25 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 f7c08d52de2..1ce76e50c80 100644
  8. --- a/.gitignore
  9. +++ b/.gitignore
  10. @@ -34,4 +34,3 @@ nuget.exe
  11. **/Resources/*.Designer.cs
  12. .vscode/
  13. global.json
  14. -korebuild-lock.txt
  15. diff --git a/Directory.Build.props b/Directory.Build.props
  16. index 508e47c524b..d7c1b1fd565 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. <RepositoryUrl>https://github.com/aspnet/Localization</RepositoryUrl>
  27. @@ -8,7 +9,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..9009a4e631f
  73. --- /dev/null
  74. +++ b/build/dependencies.props
  75. @@ -0,0 +1,29 @@
  76. +<Project>
  77. + <PropertyGroup>
  78. + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
  79. + </PropertyGroup>
  80. + <PropertyGroup Label="Package Versions">
  81. + <InternalAspNetCoreSdkPackageVersion>2.1.0-preview1-15550</InternalAspNetCoreSdkPackageVersion>
  82. + <MicrosoftAspNetCoreHttpExtensionsPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreHttpExtensionsPackageVersion>
  83. + <MicrosoftAspNetCoreRoutingAbstractionsPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreRoutingAbstractionsPackageVersion>
  84. + <MicrosoftAspNetCoreRoutingPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreRoutingPackageVersion>
  85. + <MicrosoftAspNetCoreServerIISIntegrationPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreServerIISIntegrationPackageVersion>
  86. + <MicrosoftAspNetCoreServerKestrelPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreServerKestrelPackageVersion>
  87. + <MicrosoftAspNetCoreTestHostPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreTestHostPackageVersion>
  88. + <MicrosoftAspNetCoreTestingPackageVersion>2.1.0-preview1-27498</MicrosoftAspNetCoreTestingPackageVersion>
  89. + <MicrosoftExtensionsConfigurationCommandLinePackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsConfigurationCommandLinePackageVersion>
  90. + <MicrosoftExtensionsDependencyInjectionAbstractionsPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsDependencyInjectionAbstractionsPackageVersion>
  91. + <MicrosoftExtensionsDependencyInjectionPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsDependencyInjectionPackageVersion>
  92. + <MicrosoftExtensionsLoggingAbstractionsPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsLoggingAbstractionsPackageVersion>
  93. + <MicrosoftExtensionsLoggingConsolePackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsLoggingConsolePackageVersion>
  94. + <MicrosoftExtensionsLoggingPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsLoggingPackageVersion>
  95. + <MicrosoftExtensionsLoggingTestingPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsLoggingTestingPackageVersion>
  96. + <MicrosoftExtensionsOptionsPackageVersion>2.1.0-preview1-27498</MicrosoftExtensionsOptionsPackageVersion>
  97. + <MicrosoftNETCoreApp20PackageVersion>2.0.0</MicrosoftNETCoreApp20PackageVersion>
  98. + <MicrosoftNETTestSdkPackageVersion>15.3.0</MicrosoftNETTestSdkPackageVersion>
  99. + <MoqPackageVersion>4.7.49</MoqPackageVersion>
  100. + <XunitPackageVersion>2.3.0</XunitPackageVersion>
  101. + <XunitRunnerVisualStudioPackageVersion>2.3.0</XunitRunnerVisualStudioPackageVersion>
  102. + </PropertyGroup>
  103. + <Import Project="$(DotNetPackageVersionPropsPath)" Condition=" '$(DotNetPackageVersionPropsPath)' != '' " />
  104. +</Project>
  105. diff --git a/build/repo.props b/build/repo.props
  106. index 637a6ca001d..2f60d42ec04 100644
  107. --- a/build/repo.props
  108. +++ b/build/repo.props
  109. @@ -2,7 +2,11 @@
  110. <ItemGroup>
  111. <ExcludeFromTest Include="$(RepositoryRoot)test\LocalizationWebsite\*.csproj" />
  112. <ExcludeFromTest Include="$(RepositoryRoot)test\Resources*\*.csproj" />
  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. +
  117. + <PropertyGroup>
  118. + <!-- These properties are use by the automation that updates dependencies.props -->
  119. + <LineupPackageId>Internal.AspNetCore.Universe.Lineup</LineupPackageId>
  120. + <LineupPackageRestoreSource>https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json</LineupPackageRestoreSource>
  121. + </PropertyGroup>
  122. </Project>
  123. diff --git a/korebuild-lock.txt b/korebuild-lock.txt
  124. new file mode 100644
  125. index 00000000000..36d80560371
  126. --- /dev/null
  127. +++ b/korebuild-lock.txt
  128. @@ -0,0 +1,2 @@
  129. +version:2.1.0-preview1-15550
  130. +commithash:0dd080d0d87b4d1966ec0af9961dc8bacc04f84f
  131. diff --git a/korebuild.json b/korebuild.json
  132. new file mode 100644
  133. index 00000000000..bd5d51a51b0
  134. --- /dev/null
  135. +++ b/korebuild.json
  136. @@ -0,0 +1,4 @@
  137. +{
  138. + "$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/dev/tools/korebuild.schema.json",
  139. + "channel": "dev"
  140. +}
  141. diff --git a/samples/LocalizationSample/LocalizationSample.csproj b/samples/LocalizationSample/LocalizationSample.csproj
  142. index f3d05730dec..0ee28ca8dcc 100644
  143. --- a/samples/LocalizationSample/LocalizationSample.csproj
  144. +++ b/samples/LocalizationSample/LocalizationSample.csproj
  145. @@ -10,10 +10,10 @@
  146. </ItemGroup>
  147. <ItemGroup>
  148. - <PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" />
  149. - <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" />
  150. - <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" />
  151. - <PackageReference Include="Microsoft.Extensions.Logging.Console" />
  152. + <PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="$(MicrosoftAspNetCoreServerIISIntegrationPackageVersion)" />
  153. + <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(MicrosoftAspNetCoreServerKestrelPackageVersion)" />
  154. + <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="$(MicrosoftExtensionsConfigurationCommandLinePackageVersion)" />
  155. + <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsolePackageVersion)" />
  156. </ItemGroup>
  157. </Project>
  158. diff --git a/src/Directory.Build.props b/src/Directory.Build.props
  159. index 9d9a3de33ac..1e0980f6633 100644
  160. --- a/src/Directory.Build.props
  161. +++ b/src/Directory.Build.props
  162. @@ -2,6 +2,6 @@
  163. <Import Project="..\Directory.Build.props" />
  164. <ItemGroup>
  165. - <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" />
  166. + <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
  167. </ItemGroup>
  168. </Project>
  169. diff --git a/src/Microsoft.AspNetCore.Localization.Routing/Microsoft.AspNetCore.Localization.Routing.csproj b/src/Microsoft.AspNetCore.Localization.Routing/Microsoft.AspNetCore.Localization.Routing.csproj
  170. index b5c433df244..06e167219b8 100644
  171. --- a/src/Microsoft.AspNetCore.Localization.Routing/Microsoft.AspNetCore.Localization.Routing.csproj
  172. +++ b/src/Microsoft.AspNetCore.Localization.Routing/Microsoft.AspNetCore.Localization.Routing.csproj
  173. @@ -14,7 +14,7 @@
  174. </ItemGroup>
  175. <ItemGroup>
  176. - <PackageReference Include="Microsoft.AspNetCore.Routing.Abstractions" />
  177. + <PackageReference Include="Microsoft.AspNetCore.Routing.Abstractions" Version="$(MicrosoftAspNetCoreRoutingAbstractionsPackageVersion)" />
  178. </ItemGroup>
  179. </Project>
  180. diff --git a/src/Microsoft.AspNetCore.Localization/Microsoft.AspNetCore.Localization.csproj b/src/Microsoft.AspNetCore.Localization/Microsoft.AspNetCore.Localization.csproj
  181. index a34013b8939..dc7e2ed59b2 100644
  182. --- a/src/Microsoft.AspNetCore.Localization/Microsoft.AspNetCore.Localization.csproj
  183. +++ b/src/Microsoft.AspNetCore.Localization/Microsoft.AspNetCore.Localization.csproj
  184. @@ -14,9 +14,9 @@
  185. </ItemGroup>
  186. <ItemGroup>
  187. - <PackageReference Include="Microsoft.AspNetCore.Http.Extensions" />
  188. - <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
  189. - <PackageReference Include="Microsoft.Extensions.Options" />
  190. + <PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="$(MicrosoftAspNetCoreHttpExtensionsPackageVersion)" />
  191. + <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="$(MicrosoftExtensionsLoggingAbstractionsPackageVersion)" />
  192. + <PackageReference Include="Microsoft.Extensions.Options" Version="$(MicrosoftExtensionsOptionsPackageVersion)" />
  193. </ItemGroup>
  194. </Project>
  195. diff --git a/src/Microsoft.Extensions.Localization/Microsoft.Extensions.Localization.csproj b/src/Microsoft.Extensions.Localization/Microsoft.Extensions.Localization.csproj
  196. index f2dc1998b4b..d0e6e26596e 100644
  197. --- a/src/Microsoft.Extensions.Localization/Microsoft.Extensions.Localization.csproj
  198. +++ b/src/Microsoft.Extensions.Localization/Microsoft.Extensions.Localization.csproj
  199. @@ -14,9 +14,9 @@
  200. </ItemGroup>
  201. <ItemGroup>
  202. - <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" />
  203. - <PackageReference Include="Microsoft.Extensions.Options" />
  204. - <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
  205. + <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="$(MicrosoftExtensionsDependencyInjectionAbstractionsPackageVersion)" />
  206. + <PackageReference Include="Microsoft.Extensions.Options" Version="$(MicrosoftExtensionsOptionsPackageVersion)" />
  207. + <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="$(MicrosoftExtensionsLoggingAbstractionsPackageVersion)" />
  208. </ItemGroup>
  209. </Project>
  210. diff --git a/test/Directory.Build.props b/test/Directory.Build.props
  211. index 9d9a3de33ac..1e0980f6633 100644
  212. --- a/test/Directory.Build.props
  213. +++ b/test/Directory.Build.props
  214. @@ -2,6 +2,6 @@
  215. <Import Project="..\Directory.Build.props" />
  216. <ItemGroup>
  217. - <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" />
  218. + <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
  219. </ItemGroup>
  220. </Project>
  221. diff --git a/test/LocalizationWebsite/LocalizationWebsite.csproj b/test/LocalizationWebsite/LocalizationWebsite.csproj
  222. index fc8111ec664..822158df595 100644
  223. --- a/test/LocalizationWebsite/LocalizationWebsite.csproj
  224. +++ b/test/LocalizationWebsite/LocalizationWebsite.csproj
  225. @@ -12,10 +12,10 @@
  226. </ItemGroup>
  227. <ItemGroup>
  228. - <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" />
  229. - <PackageReference Include="Microsoft.AspNetCore.Testing" />
  230. - <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" />
  231. - <PackageReference Include="Microsoft.Extensions.Logging.Console" />
  232. + <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(MicrosoftAspNetCoreServerKestrelPackageVersion)" />
  233. + <PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
  234. + <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="$(MicrosoftExtensionsConfigurationCommandLinePackageVersion)" />
  235. + <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsolePackageVersion)" />
  236. </ItemGroup>
  237. </Project>
  238. diff --git a/test/Microsoft.AspNetCore.Localization.FunctionalTests/Microsoft.AspNetCore.Localization.FunctionalTests.csproj b/test/Microsoft.AspNetCore.Localization.FunctionalTests/Microsoft.AspNetCore.Localization.FunctionalTests.csproj
  239. index b5e176565d7..29b3410d469 100644
  240. --- a/test/Microsoft.AspNetCore.Localization.FunctionalTests/Microsoft.AspNetCore.Localization.FunctionalTests.csproj
  241. +++ b/test/Microsoft.AspNetCore.Localization.FunctionalTests/Microsoft.AspNetCore.Localization.FunctionalTests.csproj
  242. @@ -12,12 +12,12 @@
  243. </ItemGroup>
  244. <ItemGroup>
  245. - <PackageReference Include="Microsoft.AspNetCore.TestHost" />
  246. - <PackageReference Include="Microsoft.Extensions.Logging" />
  247. - <PackageReference Include="Microsoft.Extensions.Logging.Console" />
  248. - <PackageReference Include="Microsoft.NET.Test.Sdk" />
  249. - <PackageReference Include="xunit" />
  250. - <PackageReference Include="xunit.runner.visualstudio" />
  251. + <PackageReference Include="Microsoft.AspNetCore.TestHost" Version="$(MicrosoftAspNetCoreTestHostPackageVersion)" />
  252. + <PackageReference Include="Microsoft.Extensions.Logging" Version="$(MicrosoftExtensionsLoggingPackageVersion)" />
  253. + <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(MicrosoftExtensionsLoggingConsolePackageVersion)" />
  254. + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPackageVersion)" />
  255. + <PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
  256. + <PackageReference Include="xunit.runner.visualstudio" Version="$(XunitRunnerVisualStudioPackageVersion)" />
  257. </ItemGroup>
  258. </Project>
  259. diff --git a/test/Microsoft.AspNetCore.Localization.Routing.Tests/Microsoft.AspNetCore.Localization.Routing.Tests.csproj b/test/Microsoft.AspNetCore.Localization.Routing.Tests/Microsoft.AspNetCore.Localization.Routing.Tests.csproj
  260. index 185208b032d..d328b3b84a1 100644
  261. --- a/test/Microsoft.AspNetCore.Localization.Routing.Tests/Microsoft.AspNetCore.Localization.Routing.Tests.csproj
  262. +++ b/test/Microsoft.AspNetCore.Localization.Routing.Tests/Microsoft.AspNetCore.Localization.Routing.Tests.csproj
  263. @@ -10,11 +10,11 @@
  264. </ItemGroup>
  265. <ItemGroup>
  266. - <PackageReference Include="Microsoft.AspNetCore.Routing" />
  267. - <PackageReference Include="Microsoft.AspNetCore.TestHost" />
  268. - <PackageReference Include="Microsoft.NET.Test.Sdk" />
  269. - <PackageReference Include="xunit" />
  270. - <PackageReference Include="xunit.runner.visualstudio" />
  271. + <PackageReference Include="Microsoft.AspNetCore.Routing" Version="$(MicrosoftAspNetCoreRoutingPackageVersion)" />
  272. + <PackageReference Include="Microsoft.AspNetCore.TestHost" Version="$(MicrosoftAspNetCoreTestHostPackageVersion)" />
  273. + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPackageVersion)" />
  274. + <PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
  275. + <PackageReference Include="xunit.runner.visualstudio" Version="$(XunitRunnerVisualStudioPackageVersion)" />
  276. </ItemGroup>
  277. </Project>
  278. diff --git a/test/Microsoft.AspNetCore.Localization.Tests/Microsoft.AspNetCore.Localization.Tests.csproj b/test/Microsoft.AspNetCore.Localization.Tests/Microsoft.AspNetCore.Localization.Tests.csproj
  279. index f58033bd9e4..15d3d799dbb 100644
  280. --- a/test/Microsoft.AspNetCore.Localization.Tests/Microsoft.AspNetCore.Localization.Tests.csproj
  281. +++ b/test/Microsoft.AspNetCore.Localization.Tests/Microsoft.AspNetCore.Localization.Tests.csproj
  282. @@ -10,13 +10,13 @@
  283. </ItemGroup>
  284. <ItemGroup>
  285. - <PackageReference Include="Microsoft.AspNetCore.TestHost" />
  286. - <PackageReference Include="Microsoft.Extensions.DependencyInjection" />
  287. - <PackageReference Include="Microsoft.Extensions.Logging" />
  288. - <PackageReference Include="Microsoft.Extensions.Logging.Testing" />
  289. - <PackageReference Include="Microsoft.NET.Test.Sdk" />
  290. - <PackageReference Include="xunit" />
  291. - <PackageReference Include="xunit.runner.visualstudio" />
  292. + <PackageReference Include="Microsoft.AspNetCore.TestHost" Version="$(MicrosoftAspNetCoreTestHostPackageVersion)" />
  293. + <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="$(MicrosoftExtensionsDependencyInjectionPackageVersion)" />
  294. + <PackageReference Include="Microsoft.Extensions.Logging" Version="$(MicrosoftExtensionsLoggingPackageVersion)" />
  295. + <PackageReference Include="Microsoft.Extensions.Logging.Testing" Version="$(MicrosoftExtensionsLoggingTestingPackageVersion)" />
  296. + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPackageVersion)" />
  297. + <PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
  298. + <PackageReference Include="xunit.runner.visualstudio" Version="$(XunitRunnerVisualStudioPackageVersion)" />
  299. </ItemGroup>
  300. </Project>
  301. diff --git a/test/Microsoft.Extensions.Localization.Tests/Microsoft.Extensions.Localization.Tests.csproj b/test/Microsoft.Extensions.Localization.Tests/Microsoft.Extensions.Localization.Tests.csproj
  302. index d629cf5d254..ea55d999e5a 100644
  303. --- a/test/Microsoft.Extensions.Localization.Tests/Microsoft.Extensions.Localization.Tests.csproj
  304. +++ b/test/Microsoft.Extensions.Localization.Tests/Microsoft.Extensions.Localization.Tests.csproj
  305. @@ -10,13 +10,13 @@
  306. </ItemGroup>
  307. <ItemGroup>
  308. - <PackageReference Include="Microsoft.AspNetCore.Testing" />
  309. - <PackageReference Include="Microsoft.Extensions.DependencyInjection" />
  310. - <PackageReference Include="Microsoft.Extensions.Logging.Testing" />
  311. - <PackageReference Include="Microsoft.NET.Test.Sdk" />
  312. - <PackageReference Include="Moq" />
  313. - <PackageReference Include="xunit" />
  314. - <PackageReference Include="xunit.runner.visualstudio" />
  315. + <PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
  316. + <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="$(MicrosoftExtensionsDependencyInjectionPackageVersion)" />
  317. + <PackageReference Include="Microsoft.Extensions.Logging.Testing" Version="$(MicrosoftExtensionsLoggingTestingPackageVersion)" />
  318. + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkPackageVersion)" />
  319. + <PackageReference Include="Moq" Version="$(MoqPackageVersion)" />
  320. + <PackageReference Include="xunit" Version="$(XunitPackageVersion)" />
  321. + <PackageReference Include="xunit.runner.visualstudio" Version="$(XunitRunnerVisualStudioPackageVersion)" />
  322. </ItemGroup>
  323. </Project>
  324. diff --git a/version.props b/version.props
  325. new file mode 100644
  326. index 00000000000..8542e1aae1e
  327. --- /dev/null
  328. +++ b/version.props
  329. @@ -0,0 +1,10 @@
  330. +<Project>
  331. + <PropertyGroup>
  332. + <VersionPrefix>2.1.0</VersionPrefix>
  333. + <VersionSuffix>preview1</VersionSuffix>
  334. + <PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' == 'rtm' ">$(VersionPrefix)</PackageVersion>
  335. + <PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' != 'rtm' ">$(VersionPrefix)-$(VersionSuffix)-final</PackageVersion>
  336. + <BuildNumber Condition="'$(BuildNumber)' == ''">t000</BuildNumber>
  337. + <VersionSuffix Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
  338. + </PropertyGroup>
  339. +</Project>
  340. diff --git a/version.xml b/version.xml
  341. deleted file mode 100644
  342. index 3c05022b7d7..00000000000
  343. --- a/version.xml
  344. +++ /dev/null
  345. @@ -1,8 +0,0 @@
  346. -<!-- This file may be overwritten by automation. -->
  347. -<Project>
  348. - <PropertyGroup>
  349. - <KoreBuildChannel>dev</KoreBuildChannel>
  350. - <VersionPrefix>2.1.0</VersionPrefix>
  351. - <VersionSuffix>preview1</VersionSuffix>
  352. - </PropertyGroup>
  353. -</Project>