From cc1b5f4d5bc2a96442e48177dcc839daf47b4d5d Mon Sep 17 00:00:00 2001 From: Kiran Challa Date: Fri, 24 Mar 2017 11:20:23 -0700 Subject: [PATCH] Converted test projects to run on netcoreapp2.0 --- build/dependencies.props | 3 ++- .../Infrastructure/ApplicationTestFixture.cs | 6 +----- ...NetCore.Mvc.Razor.ViewCompilation.FunctionalTests.csproj | 2 +- ...crosoft.AspNetCore.Mvc.Razor.ViewCompilation.Test.csproj | 2 +- .../ApplicationUsingPrecompiledViewClassLibrary.csproj | 2 +- .../ApplicationUsingRelativePaths.csproj | 2 +- .../ApplicationWithConfigureMvc.csproj | 2 +- .../ApplicationWithCustomInputFiles.csproj | 2 +- .../ApplicationWithParseErrors.csproj | 2 +- .../ApplicationWithTagHelpers.csproj | 2 +- .../ClassLibraryWithPrecompiledViews.csproj | 2 +- .../PublishWithEmbedViewSources.csproj | 2 +- testapps/SimpleApp/SimpleApp.csproj | 2 +- .../SimpleAppWithAssemblyRename.csproj | 2 +- testapps/StrongNamedApp/StrongNamedApp.csproj | 2 +- 15 files changed, 16 insertions(+), 19 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index 6929fb7259..995e1ccfb2 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -5,7 +5,8 @@ 4.3.0 2.0.0-* 1.6.1 + 2.0.0-* 15.0.0 2.2.0 - \ No newline at end of file + diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Infrastructure/ApplicationTestFixture.cs b/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Infrastructure/ApplicationTestFixture.cs index 4aec2c3c8b..fa265a149c 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Infrastructure/ApplicationTestFixture.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Infrastructure/ApplicationTestFixture.cs @@ -63,11 +63,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation RuntimeArchitecture.x64) { PublishApplicationBeforeDeployment = true, -#if NETCOREAPP1_1 - TargetFramework = "netcoreapp1.1", -#else -#error the target framework needs to be updated. -#endif + TargetFramework = "netcoreapp2.0", #if DEBUG Configuration = "Debug", #else diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests.csproj b/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests.csproj index 5ac55d2236..5f190c7c5c 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests.csproj +++ b/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests.csproj @@ -3,7 +3,7 @@ - netcoreapp1.1 + netcoreapp2.0 $(DefineConstants);__remove_this_to__GENERATE_BASELINES diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Test.csproj b/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Test.csproj index be4160bee4..09620d3499 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Test.csproj +++ b/test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Test.csproj @@ -3,7 +3,7 @@ - netcoreapp1.1 + netcoreapp2.0 diff --git a/testapps/ApplicationUsingPrecompiledViewClassLibrary/ApplicationUsingPrecompiledViewClassLibrary.csproj b/testapps/ApplicationUsingPrecompiledViewClassLibrary/ApplicationUsingPrecompiledViewClassLibrary.csproj index 1678773e75..1de9d7e03a 100644 --- a/testapps/ApplicationUsingPrecompiledViewClassLibrary/ApplicationUsingPrecompiledViewClassLibrary.csproj +++ b/testapps/ApplicationUsingPrecompiledViewClassLibrary/ApplicationUsingPrecompiledViewClassLibrary.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 diff --git a/testapps/ApplicationUsingRelativePaths/ApplicationUsingRelativePaths.csproj b/testapps/ApplicationUsingRelativePaths/ApplicationUsingRelativePaths.csproj index 8003e38b3f..b56509af0d 100644 --- a/testapps/ApplicationUsingRelativePaths/ApplicationUsingRelativePaths.csproj +++ b/testapps/ApplicationUsingRelativePaths/ApplicationUsingRelativePaths.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 true diff --git a/testapps/ApplicationWithConfigureMvc/ApplicationWithConfigureMvc.csproj b/testapps/ApplicationWithConfigureMvc/ApplicationWithConfigureMvc.csproj index 8003e38b3f..b56509af0d 100644 --- a/testapps/ApplicationWithConfigureMvc/ApplicationWithConfigureMvc.csproj +++ b/testapps/ApplicationWithConfigureMvc/ApplicationWithConfigureMvc.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 true diff --git a/testapps/ApplicationWithCustomInputFiles/ApplicationWithCustomInputFiles.csproj b/testapps/ApplicationWithCustomInputFiles/ApplicationWithCustomInputFiles.csproj index f190cafa4e..c180afa00f 100644 --- a/testapps/ApplicationWithCustomInputFiles/ApplicationWithCustomInputFiles.csproj +++ b/testapps/ApplicationWithCustomInputFiles/ApplicationWithCustomInputFiles.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 true true diff --git a/testapps/ApplicationWithParseErrors/ApplicationWithParseErrors.csproj b/testapps/ApplicationWithParseErrors/ApplicationWithParseErrors.csproj index 8003e38b3f..b56509af0d 100644 --- a/testapps/ApplicationWithParseErrors/ApplicationWithParseErrors.csproj +++ b/testapps/ApplicationWithParseErrors/ApplicationWithParseErrors.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 true diff --git a/testapps/ApplicationWithTagHelpers/ApplicationWithTagHelpers.csproj b/testapps/ApplicationWithTagHelpers/ApplicationWithTagHelpers.csproj index 41dab93ff9..599b96fa59 100644 --- a/testapps/ApplicationWithTagHelpers/ApplicationWithTagHelpers.csproj +++ b/testapps/ApplicationWithTagHelpers/ApplicationWithTagHelpers.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 true diff --git a/testapps/ClassLibraryWithPrecompiledViews/ClassLibraryWithPrecompiledViews.csproj b/testapps/ClassLibraryWithPrecompiledViews/ClassLibraryWithPrecompiledViews.csproj index 1b692a6893..9a6990c1f1 100644 --- a/testapps/ClassLibraryWithPrecompiledViews/ClassLibraryWithPrecompiledViews.csproj +++ b/testapps/ClassLibraryWithPrecompiledViews/ClassLibraryWithPrecompiledViews.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 obj\precompiled\$(TargetFramework) true diff --git a/testapps/PublishWithEmbedViewSources/PublishWithEmbedViewSources.csproj b/testapps/PublishWithEmbedViewSources/PublishWithEmbedViewSources.csproj index 39d300ec51..b79aeb12dc 100644 --- a/testapps/PublishWithEmbedViewSources/PublishWithEmbedViewSources.csproj +++ b/testapps/PublishWithEmbedViewSources/PublishWithEmbedViewSources.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 true true diff --git a/testapps/SimpleApp/SimpleApp.csproj b/testapps/SimpleApp/SimpleApp.csproj index 8003e38b3f..b56509af0d 100644 --- a/testapps/SimpleApp/SimpleApp.csproj +++ b/testapps/SimpleApp/SimpleApp.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 true diff --git a/testapps/SimpleAppWithAssemblyRename/SimpleAppWithAssemblyRename.csproj b/testapps/SimpleAppWithAssemblyRename/SimpleAppWithAssemblyRename.csproj index 12cc879675..4900f4273a 100644 --- a/testapps/SimpleAppWithAssemblyRename/SimpleAppWithAssemblyRename.csproj +++ b/testapps/SimpleAppWithAssemblyRename/SimpleAppWithAssemblyRename.csproj @@ -1,7 +1,7 @@  NewAssemblyName - netcoreapp1.1 + netcoreapp2.0 true diff --git a/testapps/StrongNamedApp/StrongNamedApp.csproj b/testapps/StrongNamedApp/StrongNamedApp.csproj index ccdabeae1f..0c90190e03 100644 --- a/testapps/StrongNamedApp/StrongNamedApp.csproj +++ b/testapps/StrongNamedApp/StrongNamedApp.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1 + netcoreapp2.0 ../../build/Key.snk true true