Azure YAML build pipeline getting failed for dot net web service
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.