1
votes

I am new to TeamCity and difficulties building Visual studio 2013 soln testing on win 7 .My Plan is to make TeamCity automate build & deployment on committing to svn server with 2 builds. 1-Build -> Build xyz.sln file with 2 web application projects -> proj1 & proj2 . 2-Publish -> If 1-Build is Successful then publish proj2 web application project to test & prod server (2 servers). I did the setup of svn trunk on TeamCity which has xyz.soln file and connection tested successfully. When I tried to build the configuration with my xyz.soln Build Step :enter image description here

When I tried to run the build it was giving: Warning: No enabled compatible agents for this build configuration. Please register a build agent or tweak build configuration requirements. enter image description here

Followed this -> http://www.danmusk.com/how-to-build-asp-net-applications-in-teamcity-with-msbuild-tools-2013-and-net-framework-4-5-sdk/ Installed MSBuild separately and confirmed MSBuild Tools 2013 -> C:\Program Files (x86)\MSBuild\12.0\Bin also .Net framework -> enter image description here

windows SDK ->

enter image description here

https://teamcity-support.jetbrains.com/hc/en-us/community/posts/206843275-Unmet-requirements-MSBuildTools12-0-x86-Path-exists enter image description here

Any help would be great? Need to fix this Issue badly .

1

1 Answers

1
votes

If you installed the appropriate MSBuild Tools, you likely just need to restart the build agent so it can re-register with the current set of capabilities.

To illustrate how this works, you can first look at the Build Configuration's Agent Requirements: TeamCity Agent Requirements

In this example, you can see the build needs MSBuildTools12.0_x86_Path defined (as well as some .NET framework stuff).

Over on the Agent's parameters, under Agents->[Agent1]->Agent Parameters->Configuration Parameters, you can see a list like this: Team City Agent Config Parameters

In my case, the value is present so it's considered a 'compatible agent'.

How do these settings get on the agent? Well, when the agent starts up it checks all these things to see what it's capable of and includes them in this big list of Configuration Parameters.

Therefore, if you install something like MSBuild Tools, you'll need to restart the agent... it runs as a service, so just go to the services panel on the agent box and restart it.