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?
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.
There is now a hosted 2017 option that are able to build the 2017 (Visual Studio version '15.0') projects.
Change to that and you should be all set.
If you are using "Visual Studio Test" task in your release pipeline, Please select "Installed by tools installer" as "Test platform version"