azure-devops

VSBuild task not able to find vsVersion ='14.0'


In one of my pipeline, I am trying to build a solution which is created using VS2015. I am using a on-prem agent.

I am using VSBuild task as shown below

 - task: VSBuild@1
      inputs:
        solution: '**\*.sln'
        vsVersion: '14.0'
        configuration: 'release'
        clean: true

When I run this pipeline, in the logs I can see this warning

##[warning]Visual Studio version '14.0' not found. Falling back to version '16.0'.

Do I have to install something more in the agent? Agent capability is showing me multiple MSBuild versions

Agent capability


Solution

  • Visual Studio version 14.0 refers to Visual Studio 2015 which is not installed on your agents based on this screenshot. If you want to use that, you need to install it on your agent.