I loaded my VS2008 solution into the new VS2010 and asked to target ASP.NET 3.5 to begin with. This worked on all project except for my one MS unit test project. The class library for my RhinoMock tests are fine.
I couldn't Google the specific error but I did get this following helpful info from Microsoft: "It's not a bug - you just can't do it" ... Thanks!
Workaround - AKA cop out
Fortunately, for me, there aren't many tests in this project and targeting ASP.NET 3.5 is only very temporary so I have excluded this test project for now and all builds fine.So BEWARE if you are planning on upgrading to VS2010 AND currently using MS's test library AND targeting the ASP.NET 3.5 framework! Because you can't and it doesn't look like there is a fix in sight. Disappointing!
It seems like a last minute 'hack' to get VS 2010 out of the door. I didn't get the option to target any framework other than 4.0 for the test, which is pretty crap really as they do go on about multi-targeting.
ReplyDeleteSo the idea of upgrading to 2010 and carrying on with your .Net 2.0 projects that include tests is not doable.
Thanks for researching it with MS and posting, saved me hours.
It seems like a last minute here . ..
DeleteYeah, filthy hack! No worries mate, glad to know this helps :)
ReplyDeleteThere is a way:
ReplyDeletehttp://www.galcho.com/Blog/PermaLink.aspx?guid=3bb11214-65c7-48b7-8d1a-5eda4aa47b6b