Skip to content

Commit

Permalink
Update dotnet test integration doc to point out to use of Directory.B…
Browse files Browse the repository at this point in the history
…uild.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]>
  • Loading branch information
Youssef1313 and BillWagner authored Jan 17, 2025
1 parent 042ad29 commit 971f563
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,6 @@ Or in project file:

</Project>
```

> [!IMPORTANT]
> 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 comments on commit 971f563

Please sign in to comment.