Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I need to install a Visual Studio 2010 (sln)-compatible Build Agent in TeamCity?

I seem to be unable to install a build agent on our TeamCity 5.1.2 build server that is compatible with a VS2010 (sln) build configuration.

Under "Build Runners", the following runners are listed:

Ant: Runner for Ant build.xml files
Duplicates finder (.NET): C# and VB duplicate code finder
Command Line: Simple command execution

And under "Compatible configurations", the project I've configured to build with the Visual Studio 2010 (sln) build runner is listed under "Incompatible configurations".

To install the build agent, I'm simply running the .msi installation package, but it seems the default settings are not good enough. The build server machine has Visual Web Developer Express 2010 as well as .NET versions 2.0-4.0 installed, but no full version of VS. Do I need anything more?

(I have no experience whatsoever of building with msbuild scripts, so if I can I want to avoid having to do that.)

like image 562
Tomas Aschan Avatar asked Jul 05 '10 13:07

Tomas Aschan


2 Answers

I think I figured it out:

Install the Windows SDK from Microsoft. Right now, the latest version is 7.1.

Note that since I just suddenly noticed that it worked, I don't know for certain that this is what did it - it might me completely irrelevant, but this is the only thing in my configuration I changed that I think could be relevant.

like image 134
Tomas Aschan Avatar answered Sep 27 '22 17:09

Tomas Aschan


TeamCity build agent does not detect .NET 4.0 Client Profile as dotNetFramework4.0. Check you have full .NET Framework 4.0 installed.

Another reason of that is build agent has corrupted plugins. To fix it: - stop agent - remove /plugins, /system, /tools folders - start agent - wait till agent autoupgrade (agent service may be shown as stopped, just wait)

like image 21
Eugene Petrenko Avatar answered Sep 27 '22 16:09

Eugene Petrenko