From 24081dca2d2fec837100a86552c8b03dc325b82c Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Thu, 16 Jan 2025 21:04:38 +0100 Subject: [PATCH 1/2] Update dotnet test integration doc to point out to use of Directory.Build.props --- .../testing/unit-testing-platform-integration-dotnet-test.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/core/testing/unit-testing-platform-integration-dotnet-test.md b/docs/core/testing/unit-testing-platform-integration-dotnet-test.md index 6b3f57910dab5..9cafeaa71350c 100644 --- a/docs/core/testing/unit-testing-platform-integration-dotnet-test.md +++ b/docs/core/testing/unit-testing-platform-integration-dotnet-test.md @@ -169,3 +169,6 @@ Or in project file: ``` + +> [!IMPORTANT] +> All examples above add properties like `EnableMSTestRunner`, `TestingPlatformDotnetTestSupport`, and `TestingPlatformCaptureOutput` in csproj file. However, it's highly recommended that you set these properties in `Directory.Build.props`. That way, you don't have to add it to every test project file, and you don't risk introducing a new project that doesn't set these properties and end up with a solution where some projects are VSTest while others are Microsoft.Testing.Platform, which may not work correctly and is unsupported scenario. From b1d723648f37b4eacbdb634644c68c13ac60f231 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Fri, 17 Jan 2025 10:54:42 -0500 Subject: [PATCH 2/2] Update docs/core/testing/unit-testing-platform-integration-dotnet-test.md --- .../testing/unit-testing-platform-integration-dotnet-test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/testing/unit-testing-platform-integration-dotnet-test.md b/docs/core/testing/unit-testing-platform-integration-dotnet-test.md index 9cafeaa71350c..c33265c649210 100644 --- a/docs/core/testing/unit-testing-platform-integration-dotnet-test.md +++ b/docs/core/testing/unit-testing-platform-integration-dotnet-test.md @@ -171,4 +171,4 @@ Or in project file: ``` > [!IMPORTANT] -> All examples above add properties like `EnableMSTestRunner`, `TestingPlatformDotnetTestSupport`, and `TestingPlatformCaptureOutput` in csproj file. However, it's highly recommended that you set these properties in `Directory.Build.props`. That way, you don't have to add it to every test project file, and you don't risk introducing a new project that doesn't set these properties and end up with a solution where some projects are VSTest while others are Microsoft.Testing.Platform, which may not work correctly and is unsupported scenario. +> All examples above add properties like `EnableMSTestRunner`, `TestingPlatformDotnetTestSupport`, and `TestingPlatformCaptureOutput` in the csproj file. However, it's highly recommended that you set these properties in `Directory.Build.props`. That way, you don't have to add it to every test project file, and you don't risk introducing a new project that doesn't set these properties and end up with a solution where some projects are VSTest while others are Microsoft.Testing.Platform, which may not work correctly and is unsupported scenario.