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

纵饮孤独 提交于 2020-01-11 05:33:19

问题


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.)


回答1:


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.




回答2:


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)



来源:https://stackoverflow.com/questions/3179921/what-do-i-need-to-install-a-visual-studio-2010-sln-compatible-build-agent-in-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!