A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hello Nikhil,
Your pipeline is using NuGet 4.7.2, which is too old for the build tools on your agent. That’s why you’re getting the Microsoft.Build.Framework error.
You just need to update the NuGet version in your pipeline. Here’s how:
1. Edit your pipeline in Azure DevOps.
2. Find the step that says Use NuGet 4.7.2 (it’s usually near the top).
3. Click on that step to open its settings.
4. In the Version field, change it from 4.7.2 to 5.5.0 (or just type latest to always use the newest version).
5. Save your pipeline.
6. Run the pipeline again.
That’s it! This update will make sure NuGet and your build tools are compatible, and your build should work without that error.
Hope this helps!