From 4bad5adc24dd76081caf00a75b9cc34ac938760e Mon Sep 17 00:00:00 2001 From: Ajay Bhargav Baaskaran Date: Tue, 22 May 2018 16:49:35 -0700 Subject: [PATCH] Don't run build server when building testapps in-place --- .../IntegrationTests/MSBuildIntegrationTestBase.cs | 3 +++ test/testapps/AppWithP2PReference/AppWithP2PReference.csproj | 5 +++++ test/testapps/ClassLibrary/ClassLibrary.csproj | 5 +++++ test/testapps/ClassLibrary2/ClassLibrary2.csproj | 5 +++++ test/testapps/LargeProject/LargeProject.csproj | 5 +++++ test/testapps/SimpleMvc/SimpleMvc.csproj | 5 +++++ test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj | 5 +++++ test/testapps/SimplePages/SimplePages.csproj | 5 +++++ 8 files changed, 38 insertions(+) diff --git a/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildIntegrationTestBase.cs b/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildIntegrationTestBase.cs index 60bc033cf7..22e66f05ee 100644 --- a/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildIntegrationTestBase.cs +++ b/test/Microsoft.AspNetCore.Razor.Design.Test/IntegrationTests/MSBuildIntegrationTestBase.cs @@ -67,6 +67,9 @@ namespace Microsoft.AspNetCore.Razor.Design.IntegrationTests // Disable node-reuse. We don't want msbuild processes to stick around // once the test is completed. "/nr:false", + + // Let the test app know it is running as part of a test. + "/p:RunningAsTest=true", }; if (!suppressRestore) diff --git a/test/testapps/AppWithP2PReference/AppWithP2PReference.csproj b/test/testapps/AppWithP2PReference/AppWithP2PReference.csproj index c15d826f9f..16771424d6 100644 --- a/test/testapps/AppWithP2PReference/AppWithP2PReference.csproj +++ b/test/testapps/AppWithP2PReference/AppWithP2PReference.csproj @@ -15,6 +15,11 @@ netcoreapp2.2 + + + false + + diff --git a/test/testapps/ClassLibrary/ClassLibrary.csproj b/test/testapps/ClassLibrary/ClassLibrary.csproj index fc5b647326..6272fc2497 100644 --- a/test/testapps/ClassLibrary/ClassLibrary.csproj +++ b/test/testapps/ClassLibrary/ClassLibrary.csproj @@ -21,6 +21,11 @@ ClassLibrary Description + + + false + + diff --git a/test/testapps/ClassLibrary2/ClassLibrary2.csproj b/test/testapps/ClassLibrary2/ClassLibrary2.csproj index 110d5df467..5a75754ff9 100644 --- a/test/testapps/ClassLibrary2/ClassLibrary2.csproj +++ b/test/testapps/ClassLibrary2/ClassLibrary2.csproj @@ -15,6 +15,11 @@ netstandard2.0 + + + + false + diff --git a/test/testapps/LargeProject/LargeProject.csproj b/test/testapps/LargeProject/LargeProject.csproj index db5a44c5c5..d9294ef631 100644 --- a/test/testapps/LargeProject/LargeProject.csproj +++ b/test/testapps/LargeProject/LargeProject.csproj @@ -16,6 +16,11 @@ netcoreapp2.2 + + + false + + diff --git a/test/testapps/SimpleMvc/SimpleMvc.csproj b/test/testapps/SimpleMvc/SimpleMvc.csproj index 021c90eaa2..de6a1dd665 100644 --- a/test/testapps/SimpleMvc/SimpleMvc.csproj +++ b/test/testapps/SimpleMvc/SimpleMvc.csproj @@ -16,6 +16,11 @@ netcoreapp2.2 + + + false + + diff --git a/test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj b/test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj index ec09cf7a67..27a307f6d6 100644 --- a/test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj +++ b/test/testapps/SimpleMvcFSharp/SimpleMvcFSharp.fsproj @@ -16,6 +16,11 @@ netcoreapp2.2 + + + false + + diff --git a/test/testapps/SimplePages/SimplePages.csproj b/test/testapps/SimplePages/SimplePages.csproj index db5a44c5c5..d9294ef631 100644 --- a/test/testapps/SimplePages/SimplePages.csproj +++ b/test/testapps/SimplePages/SimplePages.csproj @@ -16,6 +16,11 @@ netcoreapp2.2 + + + false + +