views:

636

answers:

2

Hi,

We are currently taking VS2010 for a testdrive and so far we are a little stumped with how it just won't cooperate with our existing Team Foundation Server 2008. We still have all our projects on .NET 3.5 and whenever we are now building a solution that contains a unit test project (which automatically builds in .NET 4.0) the TFS won't build it.

The .NET 4.0 framework is installed on the TFS 2008.

The error we're receiving is:

[Any CPU/Release] c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(0,0): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

As a temporary workaround we are now forced to remove all our test projects in order for our solutions to build.

A: 

You need to install VS2010 on your build machine.

Darin Dimitrov
Isn't this a bit ridiculous? Our build server isn't meant to develop on... Can't they just wrap all the necessary dll's in a "server package" or something...It does work though, and its an additional VS2010 license they can charge I suppose.
Peter
I agree it's ridiculous, not sure about the charging though.
Darin Dimitrov
I think VS2010 Express would do so I was wrong about the charging.
Peter
No it won't do, as the Express Version doesn't have the Test Assemblies.
Darin Dimitrov
Man.. that is rubbish. Time to switch to another testing framework
CraftyFella
You also need to update the TFS 2008 build service to use .NET 4 MSBuild.http://www.richard-banks.org/2009/11/how-to-build-vs2010-solutions-using.html
Coderuckus