sln2005 failed to build

I created a build with sln2005 build runner and I got the following error build messages. I have the Nunit2.4.6 installed on my laptop. When I open this project with MS Visual Studio 2005 and built it, I don't see any build error messages at all. After manuall build this, I was able to build this project through teamcity. Any idea?

.\Stdafx.cpp error C1902: Program database manager mismatch; please check your installation


C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets warning MSB3245: Could not resolve this reference. Could not locate the assembly "nunit.framework, Version=2.4.6.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

HalTester.cs(6, 7): error CS0246: The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?)
MemoryManagerTester.cs(4, 7): error CS0246: The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?)
ServerTester.cs(5, 7): error CS0246: The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?)
HalTester.cs(69, 4): error CS0246: The type or namespace name 'Test' could not be found (are you missing a using directive or an assembly reference?)

6 comments
Comment actions Permalink

Anyone? I am really in need for help on this question.

0
Comment actions Permalink

I had the same problem, but I used MsBuild as build runner. I resolved the problem very simply I insert /p:ReferencePath="C:\Program Files\NUnit 2.4.6\bin into 'Command line parameters' field.

0
Comment actions Permalink

Please check that build agent service is not running under SYSTEM account.
Please check that NUnit.Framework.dll is either installed into GAC on the build agent's machine or it is accessible to the build on build agent.

Do you use x64 windows?

Thanks, sorry for delay.

0
Comment actions Permalink

I am currently testing teamcity on my laptop. So, VSTS 2008, Nunit installed on my laptop. I am using x32 window.

0
Comment actions Permalink

Please check that TeamCityBuildAgent service is not running under SYSTEM account.

0
Comment actions Permalink

What do you mean by SYSTEM account? I installed teamcity on one build desktop machine and use it as both server and agent.

0

Please sign in to leave a comment.