LibraryManager icon indicating copy to clipboard operation
LibraryManager copied to clipboard

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

Open CoderLittleChen opened this issue 1 year ago • 1 comments

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

CoderLittleChen avatar Mar 03 '24 03:03 CoderLittleChen

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?

jimmylewis avatar Mar 27 '24 06:03 jimmylewis