Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 online build agent fails due to inability to find Visual Studio Version 15.0

I created a CI/CD pipeline by utilized Visual Studio 2017 build agent available on VSTS online but it fails due to the warning message below:

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

So, the agent starts using version 14.0 which is VS 2015. Is there a workaround to address this?

like image 697
Arash Avatar asked Jan 19 '17 15:01

Arash


3 Answers

There is now a hosted 2017 option that are able to build the 2017 (Visual Studio version '15.0') projects.

enter image description here

Change to that and you should be all set.

like image 94
JohanSellberg Avatar answered Oct 11 '22 20:10

JohanSellberg


You need to install VS 2017 on your build agent.

Your project in created from VS 2017 and you want to build it in VSTS. Your build agent is using VS 2015 and it seems that you choose VS 2017 to build your project in the build definition, so during the build, it will try to find VS 2017(15.0) on build agent.

Update:

If you're using the Host Agent in VSTS. This build agent is not support to install something on it. And according to this document, this build agent doesn't have VS 2017 installed on it currently. You could configure your build agent at your local machine and install VS 2017 on the local machine.

like image 25
Tingting0929 Avatar answered Oct 11 '22 19:10

Tingting0929


If you are using "Visual Studio Test" task in your release pipeline, Please select "Installed by tools installer" as "Test platform version"

enter image description here

like image 3
Thinira Avatar answered Oct 11 '22 19:10

Thinira