microsoft / MSBuildSdks

MSBuild project SDKs
MIT License
460 stars 82 forks source link

RunVSTest: Avoid running tests a second time when running under dotnet #549

Closed dfederm closed 7 months ago

dfederm commented 7 months ago

When using dotnet build /t:Build;Test, the tests will run twice as Microsoft.Testing.Platform.MSBuild, which is automatically included as a dependency of MSTest.TestAdapter, will run the tests in a more built-in way.

This change just gets this Microsoft.Build.RunVSTest SDK out of the way in that scenario in favor of the built-in mechanism.