diff --git a/src/Microsoft.TestPlatform.Build/Microsoft.TestPlatform.targets b/src/Microsoft.TestPlatform.Build/Microsoft.TestPlatform.targets
index caf0e409cc..b8540e13c9 100644
--- a/src/Microsoft.TestPlatform.Build/Microsoft.TestPlatform.targets
+++ b/src/Microsoft.TestPlatform.Build/Microsoft.TestPlatform.targets
@@ -17,7 +17,7 @@ Copyright (c) .NET Foundation. All rights reserved.
$(MSBuildAllProjects);$(MSBuildThisFileFullPath)
-
+
-
-
+
+
@@ -48,15 +48,20 @@ Copyright (c) .NET Foundation. All rights reserved.
VSTestBlame="$(VSTestBlame)"
VSTestTraceDataCollectorDirectoryPath="$(TraceDataCollectorDirectoryPath)"
VSTestNoLogo="$(VSTestNoLogo)"
+ Condition="'$(IsTestProject)' == 'true'"
/>
+
+
+
+
-
+
-
+
diff --git a/src/Microsoft.TestPlatform.Build/Resources/Resources.Designer.cs b/src/Microsoft.TestPlatform.Build/Resources/Resources.Designer.cs
index d58f7be295..f897fa84d0 100644
--- a/src/Microsoft.TestPlatform.Build/Resources/Resources.Designer.cs
+++ b/src/Microsoft.TestPlatform.Build/Resources/Resources.Designer.cs
@@ -79,6 +79,15 @@ internal static string BuildStarted {
}
}
+ ///
+ /// Looks up a localized string similar to Skipping running test for project {0}. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>" property to project file..
+ ///
+ internal static string NoIsTestProjectProperty {
+ get {
+ return ResourceManager.GetString("NoIsTestProjectProperty", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Test run for {0}({1}).
///
@@ -87,7 +96,7 @@ internal static string TestRunningSummary {
return ResourceManager.GetString("TestRunningSummary", resourceCulture);
}
}
-
+
///
/// Looks up a localized string similar to Warning: Update the Microsoft.NET.Test.Sdk package reference to version 15.8.0 or later to collect code coverage..
///
diff --git a/src/Microsoft.TestPlatform.Build/Resources/Resources.resx b/src/Microsoft.TestPlatform.Build/Resources/Resources.resx
index 9503166ec9..1ccc902438 100644
--- a/src/Microsoft.TestPlatform.Build/Resources/Resources.resx
+++ b/src/Microsoft.TestPlatform.Build/Resources/Resources.resx
@@ -123,6 +123,9 @@
Build started, please wait...
+
+ Skipping running test for project {0}. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>" property to project file.
+
Test run for {0}({1})
diff --git a/src/Microsoft.TestPlatform.Build/Resources/xlf/Resources.cs.xlf b/src/Microsoft.TestPlatform.Build/Resources/xlf/Resources.cs.xlf
index 3dbe6537a8..73e4b62697 100644
--- a/src/Microsoft.TestPlatform.Build/Resources/xlf/Resources.cs.xlf
+++ b/src/Microsoft.TestPlatform.Build/Resources/xlf/Resources.cs.xlf
@@ -40,6 +40,11 @@
Upozornění: Aktualizujte odkaz na balíček Microsoft.NET.Test.Sdk na verzi 15.8.0 nebo novější, aby se získalo pokrytí kódu.
+
+ Skipping running test for project {0}. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>" property to project file.
+ Skipping running test for project {0}. To run tests with dotnet test add "<IsTestProject>true<IsTestProject>" property to project file.
+
+