dotnet / test-templates

MIT License
45 stars 71 forks source link

Fix MSTest References - PR2 #438

Closed y87feng closed 1 month ago

y87feng commented 1 month ago

Follow up PR for https://github.com/dotnet/test-templates/pull/427

Test project templates manage all MSTest references. So we don't need to add MSTestv2 references and remove the MSTestv1 references manually. With the previous PR and this PR, the logic wll be:

  1. CPS project: Latest MSTestv2 references(MSTest for NET9, MSTest.TestAdapter and MSTest.TestFramework for the rest) are added
  2. Non-CPS project: MSTestv1 references("Microsoft.VisualStudio.QualityTools.UnitTestFramework") are added