Getting error while configuring build pipeline for .net framework project on azure VM IIS

Nikhil Rasal 0 Reputation points
2025-02-10T17:00:34.66+00:00

We are getting error while configuring build pipeline for .net framework project having single .sln file for 3 different applications using azure devops pipelines ,

##[error]The nuget command failed with exit code(1) and error(Error parsing solution file at D:\a\1\s\GSA.sln: Exception has been thrown by the target of an invocation. Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.)

We are running below steps,
User's image

If we do not specify the Nuget version then restore command is working but with Nuget version it is failing.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,600 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nikhil Rasal 0 Reputation points
    2025-02-11T15:27:41.73+00:00

    Can anyone assist us with the above error.

    0 comments No comments

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.