I'm having a lot of trouble getting MSTest to work with TeamCity.
I'm running Windows Server 2008 R2 (clean install) with only .Net Framework installed.
I then installed TeamCity. My MSTest projects are not building with this error message:
UnitTest1.cs(5, 17): error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
UnitTest1.cs(12, 10): error CS0246: The type or namespace name 'TestMethod' could not be found (are you missing a using directive or an assembly reference?)
UnitTest1.cs(12, 10): error CS0246: The type or namespace name 'TestMethodAttribute' could not be found (are you missing a using directive or an assembly reference?)
UnitTest1.cs(9, 6): error CS0246: The type or namespace name 'TestClass' could not be found (are you missing a using directive or an assembly reference?)
UnitTest1.cs(9, 6): error CS0246: The type or namespace name 'TestClassAttribute' could not be found (are you missing a using directive or an assembly reference?)
Is there something I have to install? I just have a simple VS2010 solution with a test project. It looks like TeamCity can't find the MSTest assemblies.I'm using the default path %system.MSTest.10.0%
Hi Brett
MSTest is a part of Visual Studio, not .NET Framework. So you'll need it installed on the agent.
Michael