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
+
+