Visual Studio 2017 online build agent fails due to

2019-03-17 09:07发布

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?

3条回答
smile是对你的礼貌
2楼-- · 2019-03-17 09:38

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.

查看更多
\"骚年 ilove
3楼-- · 2019-03-17 09:41

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.

查看更多
叛逆
4楼-- · 2019-03-17 09:42

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

查看更多
登录 后发表回答