aspnet / LibraryManager

MIT License
457 stars 83 forks source link

Package Microsoft.Web.LibraryManager.Cli 2.1.175 is not compatible with net6.0 #700

Closed LLIAMAH closed 2 years ago

LLIAMAH commented 2 years ago

Describe the bug

Severity Code Description Project File Line Suppression State

To Reproduce

Steps to reproduce the behavior:

  1. Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.3.4
  2. Create Asp.NET Core (MVC) project
  3. NuGet Packages - try to add: Microsoft.Web.LibraryManager.Build 2.1.175 - successful
  4. NuGet Packages - try to add: Microsoft.Web.LibraryManager.Cli 2.1.175 - FAILED

Expected behavior

Possibility to add Microsoft.Web.LibraryManager.Cli 2.1.175 via NuGet

Screenshots

image

Additional context

Found this during search of workaround for this more important problem

jimmylewis commented 2 years ago

The Microsoft.Web.LibraryManager.Cli is a CLI tool to be installed using dotnet tool install, not to be added as a PackageReference. This is expected behavior as the error messages indicate, though it may be an issue that the NuGet wizard is showing this package (it should realize that it's incompatible).

While the LibraryManager.Cli tool is built against netcore2.1, it installs and runs fine on systems with only newer versions of the dotnet sdk installed.