Skip to content

Commit 3d8834d

Browse files
Youssef1313Copilot
andauthored
Update docs/core/testing/unit-testing-mstest-migration-v3-v4.md
Co-authored-by: Copilot <[email protected]>
1 parent 3857ca2 commit 3d8834d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/testing/unit-testing-mstest-migration-v3-v4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,6 @@ v4 uses stricter defaults. As such, the default value of `TreatDiscoveryWarnings
216216

217217
### MSTest.Sdk no longer adds `Microsoft.NET.Test.Sdk` reference when using Microsoft.Testing.Platform
218218

219-
MSTest.Sdk, by default, uses Microsoft.Testing.Platform, unless `UseVSTest` MSBuild property is set to true. In MSTest 3.x, the SDK still adds reference to Microsoft.NET.Test.Sdk (which brings VSTest support) even when using Microsoft.Testing.Platform. This package reference is unneeded when running with Microsoft.Testing.Platform, and thus is removed in MSTest v4.
219+
By default, MSTest.Sdk uses Microsoft.Testing.Platform. If the `UseVSTest` MSBuild property is set to true, it will use VSTest instead. In MSTest 3.x, the SDK added a reference to Microsoft.NET.Test.Sdk (which brings VSTest support) even when using Microsoft.Testing.Platform. This package reference is unnecessary when running with Microsoft.Testing.Platform and has been removed in MSTest v4.
220220

221221
If you still want to have VSTest supported (for example, if you want to run with vstest.console), you need to manually add a package reference to `Microsoft.NET.Test.Sdk` NuGet package to your project.

0 commit comments

Comments
 (0)