Victor Chelaru
Victor Chelaru

Reputation: 4817

TeamCity Unmet Requirements: VS2017 Exists

I recently upgraded Visual Studio to 15.6.3 and TeamCity to 2017.2.3. I'm not sure which app is to blame, but I can no longer run builds locally because of "Unmet requirements: VS2017 exists"

enter image description here

I don't know how to solve this, as Visual Studio does exist on my machine. What can I check to figure out why this is happening or to fix the problem?

Edit: I fortunately have another computer which still had an older version of Visual Studio installed (version 15.3.5). I updated to the latest TeamCity on this machine, transferred my backup file, and the build seems to be working perfectly - it seems to be somehow caused by the latest version of Visual Studio.

Upvotes: 1

Views: 1934

Answers (2)

Victor Chelaru
Victor Chelaru

Reputation: 4817

The other responses helped me track it down, but I thought I'd provide a step-by-step in case anyone else runs into this problem.

First, I had to find the location of my buildAgent.properties file:

  1. Click on the Agents link at the very top of the page
  2. Click on the build agent name (in my case it is localhost)
  3. Click on the Agent Parameters tab
  4. Notice the agent.home.dir path (mine is c:\BuildAgent)
  5. Go to \conf\buildagent.properties (mine is c:\BuildAgent\conf\buildagent.properties

I opened this file in a text editor and added the following:

VS2017=15.6.3
VS2017_Path="C\:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\IDE\\devenv.exe"

I then restarted the team city server and build agent services and everything worked fine!

Upvotes: 4

Peska
Peska

Reputation: 4140

This looks like you have custom Agent Requirements on your Build Configuration. Check what you have in here:

enter image description here

Upvotes: 1

Related Questions