Everything worked fine migrating VS2008 solution to VS2010 solution … didn’t it?!?
TFS2008 had a word, because of a reference: unit test projects have reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll, version 10.0.0.0 .
TFS machine didn’t have .Net4.0 (or VS2010!!!) installed on…done!
Note: VS2010 doesn’t permit change target framework unit test projects, stuck to .Net 4.0, so installing .Net 4.0 is a must!
Again, TFS2008 wasn’t able find that .Net 4.0 assembly … MSBuild build path isn’t updated … yeah!
In order to add new libraries path, you have to updated build service config file (C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\TfsBuildService.exe.config) and update MSBuildPath value with assemblies path.
full guide here: How To Build VS2010 Solutions Using TFS2008 Team Build
Technorati tags: TFS, Visual Studio, MSBuild, Unit Test