Tobias Zimmergren 10/2/2018

Fixing issue related to Package is not compatible with netcoreapp2.1, supports netstandard2.0, when using Azure DevOps (VSTS)

Read Original

This article addresses a common issue in Azure DevOps (VSTS) where NuGet package restoration fails due to package incompatibility with .NET Core 2.1, specifically when packages support netstandard2.0 but not netcoreapp2.1. The problem is traced to an outdated NuGet version (4.1.0) used in the build pipeline. The solution involves adding a 'NuGet Tool Installer' task to specify a newer NuGet version, resolving the compatibility error and enabling successful builds. The article includes error logs, diagnostic steps, and a clear fix for developers migrating .NET Core projects.

Fixing issue related to Package is not compatible with netcoreapp2.1, supports netstandard2.0, when using Azure DevOps (VSTS)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet