Tobias R.
Tobias R.

Reputation: 77

Build Agent fails: Visual Studio version '15.0' not found. Looking for the latest version

I´ve tried to queue a new build on a new Agent, but it failed with this message:

Visual Studio version '15.0' not found. Looking for the latest version.

I´ve already done these steps:

The thing is: On a different server, it works just fine with the same settings (but that´s not the answer...). So I have one definition on the same TFS but different Build Server. On both servers are Visual Studio 2017, Buildtools and an Agent installed.

Is there anywhere a setting I´ve missed?

Upvotes: 4

Views: 3426

Answers (2)

chaosifier
chaosifier

Reputation: 2974

In the build task make sure you've specified the correct MSBuild Version.

enter image description here

In some cases, specifying available MSBuild Version isn't enough, in which case you can specify the location of the right version of MSBuild.exe manually.

enter image description here

Upvotes: 0

PatrickLu-MSFT
PatrickLu-MSFT

Reputation: 51183

First suggest you to manually run the build on the build agent server with VS. This will narrow if the issue is related to your build agent environment or TFS server side.

If it works on a different build server with the same build definition. Highly doubt it's related to your environment on the specific build sever, double check it.

If you are not working on the latest TFS 2017 update 2 version, you could also upgrade your TFS version, which may do the trick. Take a look at this similar question with same error: TFS 2017 - Build Server does not build Visual Studio 2017

Upvotes: 3

Related Questions