Enable Live Unit Testing on project created before VS 2017

Av Cecilia Wirén | Blogg | 31 december 2016

To be able to run live unit testing in Visual Studio 2017 on projects created with earlier versions of Visual Studio you need to add two nuget packages to your test-projects. Supported testprojects are MsTest, NUnit and xUnit; and they demands different packages.
To add nuget packages right click on your test project and choose Manage NuGet Packages then pick Browse and search for them.
Projects will continue to work in earlier version of Visual Studio and your build server will not have a problem with this since all they need is located inside the test projects now. You can also remove all previous references to earlier test dll:s in your test projects.

Microsoft Test

- MSTest.TestAdapter minmium 1.1.4-preview
- MSTest.TestFrameworks minimum 1.0.5-preview 


- NUnit3TestAdapter minimum 3.5.1
- NUnit minimum 3.5.0


I havn’t had the option of updating a xUnit test project but according to Microsoft, it should be:
- xunit.runner.visualstudio minimum 2.2.0-beta3-build1187
- xunit minimum 2.0
Till inlägget