LibraryManager
LibraryManager copied to clipboard
libman command error after installed the Microsoft.Web.LibraryManager.Cli
Describe the bug
libman command error
To Reproduce
Steps to reproduce the behavior:
- dotnet tool install -g Microsoft.Web.LibraryManager.Cli
- libman
- See error
Expected behavior
show libman related info
Screenshots
Additional context
Visual Studio 2022 professional 17.9.1 Microsoft.Web.LibraryManager 2.1.175
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?