visual-studioazure-devopsazure-pipelinesdevopson-premise

Azure Devops On Premise Server


I am using Azure Devops using classic Editor. My app is written in Asp.net core mvc. I chose asp.net core option from classic editor to build and release my app to the server. Here is snapshot of the same

Classic pipeline

I was able to install self hosted agent successfully in the on-prem server. But when I build the pipeline, I am getting below error message.

No agent found in pool OMIG-Dev which satisfies the following demand: visualstudio. All demands: msbuild, visualstudio, vstest, Agent.Version -gtVersion 2.144.0

Do I need to install VS in the server? Any help would be appreciated.

I tested this using my machine as build agent. I was able to successfully build and release the pipeline.


Solution

  • Do I need to install VS in the server?

    Yes, you do need to install Visual Studio

    I suggest you to install Visual Studio Build Tools, which is a lightweight installation package for compiling, building, and deploying applications without the Visual Studio IDE. You might need to install Visual Studio Test Agent as well (or, as an alternative, install it as a component of Visual Studio).

    After the installation the following capabilities should be automatically added to the build agents:

    Note: