aspnet / LibraryManager

Other
446 stars 78 forks source link

libman command error after installed the Microsoft.Web.LibraryManager.Cli #727

Open CoderLittleChen opened 4 months ago

CoderLittleChen commented 4 months ago

Describe the bug

libman command error

To Reproduce

Steps to reproduce the behavior:

  1. dotnet tool install -g Microsoft.Web.LibraryManager.Cli
  2. libman
  3. See error

Expected behavior

show libman related info

Screenshots

image

Additional context

Visual Studio 2022 professional 17.9.1 Microsoft.Web.LibraryManager 2.1.175

jimmylewis commented 3 months ago

hostfxr.dll not found indicates it can't find the correct runtime installed (the libman CLI tool is a framework dependent app, not self-contained). However, libman has roll-forward enabled, so it should run with any installed runtime.

What output do you get with dotnet --list-runtimes? And is it possible you've set the DOTNET_ROLL_FORWARD environment variable to disable the config setting?