Skip to content

Commit 971f563

Browse files
Update dotnet test integration doc to point out to use of Directory.Build.props (#44412)
* Update dotnet test integration doc to point out to use of Directory.Build.props * Update docs/core/testing/unit-testing-platform-integration-dotnet-test.md --------- Co-authored-by: Bill Wagner <[email protected]>
1 parent 042ad29 commit 971f563

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/core/testing/unit-testing-platform-integration-dotnet-test.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,6 @@ Or in project file:
169169

170170
</Project>
171171
```
172+
173+
> [!IMPORTANT]
174+
> 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.

0 commit comments

Comments
 (0)