Share via


Visual Studio 2008 Unit tests… Error loading *.vsmdi: *.vsmdi

I got this error. I got no information on the internet as to how to get around it…

3 hours earlier:

I wanted to create a sequence diagram from the code I have already written. Visual Studio 2010 comes with the sequence diagram feature. I decided heck why not use it. It creates some really cool sequence diagrams. I opened the same project in Visual Studio 2010, created the sequence diagram, closed the project. Went for a smoke.

30 minutes earlier:

My test cases won’t run. the error I get is “Error loading xxx.vsmdi: D:\Projects\xxx\xxx.vsmdi” looked here, looked there looked everywhere. But didn’t look in the place I should have been looking.

10 minutes earlier:

I built the test project. I got an error. “Project file contains ToolsVersion="4.0", which is not supported by this version of MSBuild. Treating the project as if it had ToolsVersion="3.5".”

Well I should have been looking at this 30 minutes ago. I went to the test projects Properties, went to TargetFramework and checked. it was not selected at all. I selected Framework 3.5.

After this all I had to do was close the project and open it and then run all my tests in the solution.

They were all still green. Love it when that happens…!!