| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- commit f0fef3f20dacd0760cffa57e657a35329f865def
- Author: Pranav K <[email protected]>
- Date: Mon Nov 13 15:27:54 2017 -0800
- Update samples and tests to target netcoreapp2.1
- diff --git a/Directory.Build.props b/Directory.Build.props
- index fb41a883336..1bcd7ca4376 100644
- --- a/Directory.Build.props
- +++ b/Directory.Build.props
- @@ -1,4 +1,8 @@
- <Project>
- + <Import
- + Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AspNetCoreSettings.props))\AspNetCoreSettings.props"
- + Condition=" '$(CI)' != 'true' AND '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AspNetCoreSettings.props))' != '' " />
- +
- <Import Project="version.props" />
- <Import Project="build\dependencies.props" />
-
- diff --git a/korebuild-lock.txt b/korebuild-lock.txt
- index 45463cc71ec..95f46130145 100644
- --- a/korebuild-lock.txt
- +++ b/korebuild-lock.txt
- @@ -1,2 +1,2 @@
- -version:2.1.0-preview1-15549
- -commithash:f570e08585fec510dd60cd4bfe8795388b757a95
- +version:2.1.0-preview1-15567
- +commithash:903e3104807b1bb8cddd28bdef205b1e2dc021d1
- diff --git a/samples/AzureBlob/AzureBlob.csproj b/samples/AzureBlob/AzureBlob.csproj
- index a9388ad953e..8ba3d51f0ff 100644
- --- a/samples/AzureBlob/AzureBlob.csproj
- +++ b/samples/AzureBlob/AzureBlob.csproj
- @@ -1,7 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFramework>netcoreapp2.0</TargetFramework>
- + <TargetFramework>netcoreapp2.1</TargetFramework>
- <OutputType>exe</OutputType>
- </PropertyGroup>
-
- diff --git a/samples/AzureKeyVault/AzureKeyVault.csproj b/samples/AzureKeyVault/AzureKeyVault.csproj
- index a4ca09bc1eb..ce4ae014085 100644
- --- a/samples/AzureKeyVault/AzureKeyVault.csproj
- +++ b/samples/AzureKeyVault/AzureKeyVault.csproj
- @@ -1,7 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFramework>netcoreapp2.0</TargetFramework>
- + <TargetFramework>netcoreapp2.1</TargetFramework>
- <OutputType>exe</OutputType>
- </PropertyGroup>
-
- diff --git a/samples/CustomEncryptorSample/CustomEncryptorSample.csproj b/samples/CustomEncryptorSample/CustomEncryptorSample.csproj
- index d6978a84947..1cfe237b50c 100644
- --- a/samples/CustomEncryptorSample/CustomEncryptorSample.csproj
- +++ b/samples/CustomEncryptorSample/CustomEncryptorSample.csproj
- @@ -1,7 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
- <OutputType>exe</OutputType>
- </PropertyGroup>
-
- diff --git a/samples/KeyManagementSample/KeyManagementSample.csproj b/samples/KeyManagementSample/KeyManagementSample.csproj
- index a1688c3d1b9..e240e30b6d6 100644
- --- a/samples/KeyManagementSample/KeyManagementSample.csproj
- +++ b/samples/KeyManagementSample/KeyManagementSample.csproj
- @@ -1,7 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
- <OutputType>exe</OutputType>
- </PropertyGroup>
-
- diff --git a/samples/NonDISample/NonDISample.csproj b/samples/NonDISample/NonDISample.csproj
- index 50244683718..168e26a249b 100644
- --- a/samples/NonDISample/NonDISample.csproj
- +++ b/samples/NonDISample/NonDISample.csproj
- @@ -1,7 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
- <OutputType>exe</OutputType>
- </PropertyGroup>
-
- diff --git a/samples/Redis/Redis.csproj b/samples/Redis/Redis.csproj
- index cbaea96c413..dc79399c6cb 100644
- --- a/samples/Redis/Redis.csproj
- +++ b/samples/Redis/Redis.csproj
- @@ -1,7 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>net461;netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>net461;netcoreapp2.1</TargetFrameworks>
- <OutputType>exe</OutputType>
- </PropertyGroup>
-
- diff --git a/test/Directory.Build.props b/test/Directory.Build.props
- index 8a1b153e106..9d4d4a902c7 100644
- --- a/test/Directory.Build.props
- +++ b/test/Directory.Build.props
- @@ -1,6 +1,13 @@
- <Project>
- <Import Project="..\Directory.Build.props" />
-
- + <PropertyGroup>
- + <DeveloperBuildTestTfms>netcoreapp2.1</DeveloperBuildTestTfms>
- + <StandardTestTfms>$(DeveloperBuildTestTfms)</StandardTestTfms>
- + <StandardTestTfms Condition=" '$(DeveloperBuild)' != 'true' ">netcoreapp2.1;netcoreapp2.0</StandardTestTfms>
- + <StandardTestTfms Condition=" '$(DeveloperBuild)' != 'true' AND '$(OS)' == 'Windows_NT' ">$(StandardTestTfms);net461</StandardTestTfms>
- + </PropertyGroup>
- +
- <ItemGroup>
- <PackageReference Include="Internal.AspNetCore.Sdk" PrivateAssets="All" Version="$(InternalAspNetCoreSdkPackageVersion)" />
- <PackageReference Include="Microsoft.AspNetCore.Testing" Version="$(MicrosoftAspNetCoreTestingPackageVersion)" />
- diff --git a/test/Microsoft.AspNetCore.Cryptography.Internal.Test/Microsoft.AspNetCore.Cryptography.Internal.Test.csproj b/test/Microsoft.AspNetCore.Cryptography.Internal.Test/Microsoft.AspNetCore.Cryptography.Internal.Test.csproj
- index 483ddeda3fd..759f10679da 100644
- --- a/test/Microsoft.AspNetCore.Cryptography.Internal.Test/Microsoft.AspNetCore.Cryptography.Internal.Test.csproj
- +++ b/test/Microsoft.AspNetCore.Cryptography.Internal.Test/Microsoft.AspNetCore.Cryptography.Internal.Test.csproj
- @@ -1,8 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
- - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
-
- diff --git a/test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test.csproj b/test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test.csproj
- index 31a604f3053..a475ac199d1 100644
- --- a/test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test.csproj
- +++ b/test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test/Microsoft.AspNetCore.Cryptography.KeyDerivation.Test.csproj
- @@ -1,8 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
- - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
-
- diff --git a/test/Microsoft.AspNetCore.DataProtection.Abstractions.Test/Microsoft.AspNetCore.DataProtection.Abstractions.Test.csproj b/test/Microsoft.AspNetCore.DataProtection.Abstractions.Test/Microsoft.AspNetCore.DataProtection.Abstractions.Test.csproj
- index ccb99debff7..1da22cec0df 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.Abstractions.Test/Microsoft.AspNetCore.DataProtection.Abstractions.Test.csproj
- +++ b/test/Microsoft.AspNetCore.DataProtection.Abstractions.Test/Microsoft.AspNetCore.DataProtection.Abstractions.Test.csproj
- @@ -1,8 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
- - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
- </PropertyGroup>
-
- <ItemGroup>
- diff --git a/test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Test.csproj b/test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Test.csproj
- index 753d0a1041d..c5ffd2f4e3b 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Test.csproj
- +++ b/test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Test/Microsoft.AspNetCore.DataProtection.AzureKeyVault.Test.csproj
- @@ -1,8 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
- - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
-
- diff --git a/test/Microsoft.AspNetCore.DataProtection.AzureStorage.Test/Microsoft.AspNetCore.DataProtection.AzureStorage.Test.csproj b/test/Microsoft.AspNetCore.DataProtection.AzureStorage.Test/Microsoft.AspNetCore.DataProtection.AzureStorage.Test.csproj
- index 018c5da2fc5..86443475721 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.AzureStorage.Test/Microsoft.AspNetCore.DataProtection.AzureStorage.Test.csproj
- +++ b/test/Microsoft.AspNetCore.DataProtection.AzureStorage.Test/Microsoft.AspNetCore.DataProtection.AzureStorage.Test.csproj
- @@ -1,8 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
- - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
-
- diff --git a/test/Microsoft.AspNetCore.DataProtection.Extensions.Test/Microsoft.AspNetCore.DataProtection.Extensions.Test.csproj b/test/Microsoft.AspNetCore.DataProtection.Extensions.Test/Microsoft.AspNetCore.DataProtection.Extensions.Test.csproj
- index 63889be38c6..29cf82928f3 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.Extensions.Test/Microsoft.AspNetCore.DataProtection.Extensions.Test.csproj
- +++ b/test/Microsoft.AspNetCore.DataProtection.Extensions.Test/Microsoft.AspNetCore.DataProtection.Extensions.Test.csproj
- @@ -1,8 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
- - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
- </PropertyGroup>
-
- <ItemGroup>
- diff --git a/test/Microsoft.AspNetCore.DataProtection.Redis.Test/Microsoft.AspNetCore.DataProtection.Redis.Test.csproj b/test/Microsoft.AspNetCore.DataProtection.Redis.Test/Microsoft.AspNetCore.DataProtection.Redis.Test.csproj
- index 75af7061ff8..d359ab936e7 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.Redis.Test/Microsoft.AspNetCore.DataProtection.Redis.Test.csproj
- +++ b/test/Microsoft.AspNetCore.DataProtection.Redis.Test/Microsoft.AspNetCore.DataProtection.Redis.Test.csproj
- @@ -1,8 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
- - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
- </PropertyGroup>
-
- <ItemGroup>
- diff --git a/test/Microsoft.AspNetCore.DataProtection.Test/AnonymousImpersonation.cs b/test/Microsoft.AspNetCore.DataProtection.Test/AnonymousImpersonation.cs
- index 15fd53ee6a5..b8ecc36c265 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.Test/AnonymousImpersonation.cs
- +++ b/test/Microsoft.AspNetCore.DataProtection.Test/AnonymousImpersonation.cs
- @@ -86,7 +86,7 @@ namespace Microsoft.AspNetCore.DataProtection
- }
- }
- }
- -#elif NETCOREAPP2_0
- +#elif NETCOREAPP2_0 || NETCOREAPP2_1
- #else
- #error Target framework needs to be updated
- #endif
- diff --git a/test/Microsoft.AspNetCore.DataProtection.Test/Microsoft.AspNetCore.DataProtection.Test.csproj b/test/Microsoft.AspNetCore.DataProtection.Test/Microsoft.AspNetCore.DataProtection.Test.csproj
- index 1ce0d356801..54469e40632 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.Test/Microsoft.AspNetCore.DataProtection.Test.csproj
- +++ b/test/Microsoft.AspNetCore.DataProtection.Test/Microsoft.AspNetCore.DataProtection.Test.csproj
- @@ -1,8 +1,7 @@
- <Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- - <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
- - <TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.0</TargetFrameworks>
- + <TargetFrameworks>$(StandardTestTfms)</TargetFrameworks>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
-
- diff --git a/test/Microsoft.AspNetCore.DataProtection.Test/TypeForwardingActivatorTests.cs b/test/Microsoft.AspNetCore.DataProtection.Test/TypeForwardingActivatorTests.cs
- index ab5252b1f2d..2b8931c98eb 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.Test/TypeForwardingActivatorTests.cs
- +++ b/test/Microsoft.AspNetCore.DataProtection.Test/TypeForwardingActivatorTests.cs
- @@ -113,7 +113,7 @@ namespace Microsoft.AspNetCore.DataProtection
- var domain = AppDomain.CreateDomain("TestDomain", null, setupInfo);
- var wrappedTestClass = (TypeForwardingActivatorTests)domain.CreateInstanceAndUnwrap(GetType().Assembly.FullName, typeof(TypeForwardingActivatorTests).FullName);
- wrappedTestClass.CreateInstance_ForwardsAcrossVersionChangesImpl(version);
- -#elif NETCOREAPP2_0
- +#elif NETCOREAPP2_0 || NETCOREAPP2_1
- CreateInstance_ForwardsAcrossVersionChangesImpl(version);
- #else
- #error Target framework should be updated
- diff --git a/test/Microsoft.AspNetCore.DataProtection.Test/XmlEncryption/DpapiXmlEncryptionTests.cs b/test/Microsoft.AspNetCore.DataProtection.Test/XmlEncryption/DpapiXmlEncryptionTests.cs
- index 6806048d550..79dcff64af0 100644
- --- a/test/Microsoft.AspNetCore.DataProtection.Test/XmlEncryption/DpapiXmlEncryptionTests.cs
- +++ b/test/Microsoft.AspNetCore.DataProtection.Test/XmlEncryption/DpapiXmlEncryptionTests.cs
- @@ -53,7 +53,7 @@ namespace Microsoft.AspNetCore.DataProtection.XmlEncryption
- ExceptionAssert2.ThrowsCryptographicException(() =>
- AnonymousImpersonation.Run(() => decryptor.Decrypt(encryptedXmlInfo.EncryptedElement)));
- }
- -#elif NETCOREAPP2_0
- +#elif NETCOREAPP2_0 || NETCOREAPP2_1
- #else
- #error Target framework needs to be updated
- #endif
|