HttpAbstractions 259 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. commit 231f3a44b1ad1605b14b59af21fe149eaf479785
  2. Author: Pranav K <[email protected]>
  3. Date: Mon Nov 13 15:12:20 2017 -0800
  4. Update samples and tests to target netcoreapp2.1
  5. diff --git a/Directory.Build.props b/Directory.Build.props
  6. index 651b7f515db..f05ac88a6aa 100644
  7. --- a/Directory.Build.props
  8. +++ b/Directory.Build.props
  9. @@ -1,4 +1,8 @@
  10. <Project>
  11. + <Import
  12. + Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AspNetCoreSettings.props))\AspNetCoreSettings.props"
  13. + Condition=" '$(CI)' != 'true' AND '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AspNetCoreSettings.props))' != '' " />
  14. +
  15. <Import Project="version.props" />
  16. <Import Project="build\dependencies.props" />
  17. diff --git a/korebuild-lock.txt b/korebuild-lock.txt
  18. index 45463cc71ec..95f46130145 100644
  19. --- a/korebuild-lock.txt
  20. +++ b/korebuild-lock.txt
  21. @@ -1,2 +1,2 @@
  22. -version:2.1.0-preview1-15549
  23. -commithash:f570e08585fec510dd60cd4bfe8795388b757a95
  24. +version:2.1.0-preview1-15567
  25. +commithash:903e3104807b1bb8cddd28bdef205b1e2dc021d1
  26. diff --git a/samples/SampleApp/SampleApp.csproj b/samples/SampleApp/SampleApp.csproj
  27. index 139ec716fb9..0447897f43a 100644
  28. --- a/samples/SampleApp/SampleApp.csproj
  29. +++ b/samples/SampleApp/SampleApp.csproj
  30. @@ -1,7 +1,7 @@
  31. <Project Sdk="Microsoft.NET.Sdk">
  32. <PropertyGroup>
  33. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  34. + <TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
  35. <OutputType>Exe</OutputType>
  36. </PropertyGroup>
  37. diff --git a/test/Directory.Build.props b/test/Directory.Build.props
  38. index b9ebade8ca0..63e288811c5 100644
  39. --- a/test/Directory.Build.props
  40. +++ b/test/Directory.Build.props
  41. @@ -1,6 +1,13 @@
  42. <Project>
  43. <Import Project="..\Directory.Build.props" />
  44. + <PropertyGroup>
  45. + <DeveloperBuildTestTfms>netcoreapp2.1</DeveloperBuildTestTfms>
  46. + <StandardTestTfms>$(DeveloperBuildTestTfms)</StandardTestTfms>
  47. + <StandardTestTfms Condition=" '$(DeveloperBuild)' != 'true' ">netcoreapp2.1;netcoreapp2.0</StandardTestTfms>
  48. + <StandardTestTfms Condition=" '$(DeveloperBuild)' != 'true' AND '$(OS)' == 'Windows_NT' ">$(StandardTestTfms);net461</StandardTestTfms>
  49. + </PropertyGroup>
  50. +
  51. <ItemGroup>
  52. <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
  53. <PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
  54. diff --git a/test/Microsoft.AspNetCore.Authentication.Core.Test/Microsoft.AspNetCore.Authentication.Core.Test.csproj b/test/Microsoft.AspNetCore.Authentication.Core.Test/Microsoft.AspNetCore.Authentication.Core.Test.csproj
  55. index 567dd352986..ed845e613ce 100644
  56. --- a/test/Microsoft.AspNetCore.Authentication.Core.Test/Microsoft.AspNetCore.Authentication.Core.Test.csproj
  57. +++ b/test/Microsoft.AspNetCore.Authentication.Core.Test/Microsoft.AspNetCore.Authentication.Core.Test.csproj
  58. @@ -1,8 +1,7 @@
  59. <Project Sdk="Microsoft.NET.Sdk">
  60. <PropertyGroup>
  61. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  62. - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
  63. + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
  64. </PropertyGroup>
  65. <ItemGroup>
  66. diff --git a/test/Microsoft.AspNetCore.Http.Abstractions.Tests/Microsoft.AspNetCore.Http.Abstractions.Tests.csproj b/test/Microsoft.AspNetCore.Http.Abstractions.Tests/Microsoft.AspNetCore.Http.Abstractions.Tests.csproj
  67. index e47d0f44fb3..9666582be1e 100644
  68. --- a/test/Microsoft.AspNetCore.Http.Abstractions.Tests/Microsoft.AspNetCore.Http.Abstractions.Tests.csproj
  69. +++ b/test/Microsoft.AspNetCore.Http.Abstractions.Tests/Microsoft.AspNetCore.Http.Abstractions.Tests.csproj
  70. @@ -1,8 +1,7 @@
  71. <Project Sdk="Microsoft.NET.Sdk">
  72. <PropertyGroup>
  73. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  74. - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
  75. + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
  76. </PropertyGroup>
  77. <ItemGroup>
  78. diff --git a/test/Microsoft.AspNetCore.Http.Extensions.Tests/Microsoft.AspNetCore.Http.Extensions.Tests.csproj b/test/Microsoft.AspNetCore.Http.Extensions.Tests/Microsoft.AspNetCore.Http.Extensions.Tests.csproj
  79. index b47b67dbe49..caadc69657a 100644
  80. --- a/test/Microsoft.AspNetCore.Http.Extensions.Tests/Microsoft.AspNetCore.Http.Extensions.Tests.csproj
  81. +++ b/test/Microsoft.AspNetCore.Http.Extensions.Tests/Microsoft.AspNetCore.Http.Extensions.Tests.csproj
  82. @@ -1,8 +1,7 @@
  83. <Project Sdk="Microsoft.NET.Sdk">
  84. <PropertyGroup>
  85. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  86. - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
  87. + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
  88. </PropertyGroup>
  89. <ItemGroup>
  90. diff --git a/test/Microsoft.AspNetCore.Http.Features.Tests/Microsoft.AspNetCore.Http.Features.Tests.csproj b/test/Microsoft.AspNetCore.Http.Features.Tests/Microsoft.AspNetCore.Http.Features.Tests.csproj
  91. index 363ff65dffb..07abe20b5ee 100644
  92. --- a/test/Microsoft.AspNetCore.Http.Features.Tests/Microsoft.AspNetCore.Http.Features.Tests.csproj
  93. +++ b/test/Microsoft.AspNetCore.Http.Features.Tests/Microsoft.AspNetCore.Http.Features.Tests.csproj
  94. @@ -1,8 +1,7 @@
  95. <Project Sdk="Microsoft.NET.Sdk">
  96. <PropertyGroup>
  97. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  98. - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
  99. + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
  100. </PropertyGroup>
  101. <ItemGroup>
  102. diff --git a/test/Microsoft.AspNetCore.Http.Tests/Microsoft.AspNetCore.Http.Tests.csproj b/test/Microsoft.AspNetCore.Http.Tests/Microsoft.AspNetCore.Http.Tests.csproj
  103. index 1bd49536680..aa428320cde 100644
  104. --- a/test/Microsoft.AspNetCore.Http.Tests/Microsoft.AspNetCore.Http.Tests.csproj
  105. +++ b/test/Microsoft.AspNetCore.Http.Tests/Microsoft.AspNetCore.Http.Tests.csproj
  106. @@ -1,8 +1,7 @@
  107. <Project Sdk="Microsoft.NET.Sdk">
  108. <PropertyGroup>
  109. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  110. - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
  111. + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
  112. </PropertyGroup>
  113. <ItemGroup>
  114. diff --git a/test/Microsoft.AspNetCore.Owin.Tests/Microsoft.AspNetCore.Owin.Tests.csproj b/test/Microsoft.AspNetCore.Owin.Tests/Microsoft.AspNetCore.Owin.Tests.csproj
  115. index 210b31eeb30..6fc9763aa4c 100644
  116. --- a/test/Microsoft.AspNetCore.Owin.Tests/Microsoft.AspNetCore.Owin.Tests.csproj
  117. +++ b/test/Microsoft.AspNetCore.Owin.Tests/Microsoft.AspNetCore.Owin.Tests.csproj
  118. @@ -1,8 +1,7 @@
  119. <Project Sdk="Microsoft.NET.Sdk">
  120. <PropertyGroup>
  121. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  122. - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
  123. + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
  124. </PropertyGroup>
  125. <ItemGroup>
  126. diff --git a/test/Microsoft.AspNetCore.WebUtilities.Tests/Microsoft.AspNetCore.WebUtilities.Tests.csproj b/test/Microsoft.AspNetCore.WebUtilities.Tests/Microsoft.AspNetCore.WebUtilities.Tests.csproj
  127. index eb60215ac4d..44d201e5b2e 100644
  128. --- a/test/Microsoft.AspNetCore.WebUtilities.Tests/Microsoft.AspNetCore.WebUtilities.Tests.csproj
  129. +++ b/test/Microsoft.AspNetCore.WebUtilities.Tests/Microsoft.AspNetCore.WebUtilities.Tests.csproj
  130. @@ -1,8 +1,7 @@
  131. <Project Sdk="Microsoft.NET.Sdk">
  132. <PropertyGroup>
  133. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  134. - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
  135. + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
  136. </PropertyGroup>
  137. <ItemGroup>
  138. diff --git a/test/Microsoft.Net.Http.Headers.Tests/Microsoft.Net.Http.Headers.Tests.csproj b/test/Microsoft.Net.Http.Headers.Tests/Microsoft.Net.Http.Headers.Tests.csproj
  139. index 08c199eaecd..d1acc289b45 100644
  140. --- a/test/Microsoft.Net.Http.Headers.Tests/Microsoft.Net.Http.Headers.Tests.csproj
  141. +++ b/test/Microsoft.Net.Http.Headers.Tests/Microsoft.Net.Http.Headers.Tests.csproj
  142. @@ -1,8 +1,7 @@
  143. <Project Sdk="Microsoft.NET.Sdk">
  144. <PropertyGroup>
  145. - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  146. - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
  147. + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
  148. </PropertyGroup>
  149. <ItemGroup>