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
  • Loading branch information
Youssef1313 authored Jan 16, 2025
1 parent cf92601 commit 24081dc
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 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 24081dc

Please sign in to comment.