We build various web projects with AzureDevops and self-hosted build agents. I am trying to add a new build that consists of a windows service written in .net core 3.1. We added a vdproj into the *.sln to manage it in a friendly installable way. I understood that we can't use MSBuild at all for this. So I used this command line as an alternative.
command line:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv" [...]\MySolution.sln /build "Release" /Project MyInstallationProject
It works fine but when I add it into a build pipeline as a command-line task it lags. What can I do to make it work?