Azure YAML build pipeline getting failed for dot net web service

Rituparna 0 Reputation points
2023-10-05T20:47:03.25+00:00

I have one dot net web api which is running fine on my local. But I am getting below error when trying to run my yaml CI Pipeline for dotnet (version 4.7.2)in Azure DevOps. C:\Users\runneradmin\AppData\Local\Microsoft\dotnet\sdk\7.0.401\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the expression in the Import declaration "C:\Users\runneradmin\AppData\Local\Microsoft\dotnet\sdk\7.0.401\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" is correct, and that the file exists on disk. Although my other pipeline steps till Nuget installer is successful.

Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.