Robin Paardekam

.NET Newbie - Silverlight, Sharepoint, AJAX and C#.

Converting Visual Studio Unit Tests from VS2005 to VS2008

I am experiencing difficulties with converting one specific test-project from VS2005 to VS2008. I am hoping that one of the Bloggingabout.net bloggers / readers can help me with this.

I try to open an existing solutionfile (target 2.0, currently being used in Visual Studio 2005) in Visual Studio 2008 (Team System Developer Edition) but one of the projects won't load (this is a Visual Studio Test Project). Perhaps someone already experienced something similar? I tried several different solutionfiles, each of them containing one or multiple unit-test-projects and there's just one solution that does not load the test-project properly.

Here are some screenshots and other additional info that perhaps might give more insight in this issue.

Visual Studio 2008 About Box

The unit-test-framework assembly that's referenced in that project is versioned 8.0.0. I also found a version 9.0.0 but changing the reference does not change a thing regarding the actual conversion. Removing the reference from the project is not helping either.

References in my MSTEST Project

The above image comes from VS2005 ofcourse, all following images are coming from VS2008. Opening the solution or the separate project in Visual Studio 2008 starts the Visual Studio Conversion Wizard.

Opening a VS2005-project in VS2008

When done converting the projects, the following messagebox pops up, indicating something went wrong:

Error-message after conversion of VS2005-project to VS2008

The project in the Solution Explorer is then marked as "Unavailable" and unfortunately reloading the project is not going to change anything about it:

Test project unavailable in VS2008

Looking at the UpgradeLog.XML, I noticed that the conversion resulted in ErrorLevel 3. Can anyone tell me what that stands for? Comparing it to other conversions this seems like "just a message, not an error" but maybe I just misinterpreted that ...

ErrorLog.Xml after converting from VS2005 to VS2008

So, to cut a long story short: does anyone have a clue on how to get the MsTest-project available in VS2008? Or maybe you have some hints on where to start digging? Thanks in advance.

Comments

Jeremy Jarrell said:

We hit this as well on our team.  You'll have to hand edit the XML to upgrade one of the MSTest assembly references.  You can find more about it here...

forums.microsoft.com/.../ShowPost.aspx

Good luck!

Jeremy

# February 23, 2008 5:53 PM

Robin Paardekam said:

Hello Jeremy, thank you very much for sending me the link. I did not do much with this issue since I posted the question. The thread you mentioned seems to be the solution to my problem so I can pick this up again. Thanks again!! Regards, Robin Paardekam

# February 25, 2008 10:17 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 5 and 6 and type the answer here: