Skip to content

Commit 24081dc

Browse files
authored
Update dotnet test integration doc to point out to use of Directory.Build.props
1 parent cf92601 commit 24081dc

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