Matt Ward

NuGet Support in Visual Studio for Mac 8.9

Changes

  • Fixed implicit NuGet packages being updated

More information on all the new features and changes in Visual Studio for Mac 8.9 can be found in the release notes.

Fixed implicit NuGet packages being updated

Updating all NuGet packages, from the Solution window, in a .NET Core 2.1 project would fail with an error.

1
Package Microsoft.NETCore.App 2.2.8 is not compatible with netcoreapp2.1 (.NETCoreApp,Version=v2.1). Package Microsoft NETCore.App 2.2.8 supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2)

The problem was that implicitly defined (or auto-referenced) NuGet package references were being updated when they should be ignored since they cannot be updated. Now Visual Studio for Mac does not attempt to update implicitly defined NuGet package references.