As is always the way. In the process of writing my last post I found something else that has caught me out in the past.
Now it’s important to note that this is by design. VS Pro 2005 does not support testing projects. The really good news is that it will in the upcoming release of VS but for now you’re somewhat stuck right?
Right now you want to load a existing test project and convert it to (say) NUnit or xUnit.net. Attempts to load the project are met with a cheery “The project type is not supported by this installation” dialog. The project is included in the solution but is marked as “unavailable”. So how do you get to at least edit the code in the editor?
- Right click on the project and choose “Edit …” to open the project file as XML.
- Delete the line that looks like this:
- Save and close the XML file.
- Right click on the project and reload it.
Done! VS no longer considers this a test project. You can use the same trick in reverse if you want to convert an existing project to be one the MSTest will interact with.