Disable libman
Nguồn:asp.net core - Libman. Error LIB002 during build application - Stack Overflow
So the reason, at least from what I've found, is that the library no longer exists or is not being seen by "cdnjs" provider.
The best way to deal with this is to update the library to a library that "cdnjs" does support. If you in fact already have the library installed consider using the "Disable libman" section.
The below instructions are being done on Visual Studio 2022, mileage may vary for other versions. If you have any issues consider using the "Re-add/Update" section.
Disable libman
Right click
libman.json
click on
Disable Client-Side Libraries on Build
Update your library
In your
libman.json
move your cursor over to the left most side of the file but to the right of the line numbersA little light bulb should show up.
- Click on the down arrow
You'll be greeted with a couple of options, Click on
Check for updates
(in my case I already have the latest version.)Select the version you want and VS will autofill the version on that line.
Re-add/update your library.
- In the Solution Explorer, right-click on the name of your Project (This is usually the
<NameOfProject>.csproj
file) - select
Add
->Client-Side Library...
- In the dialog box that appears, type
jquery@
, and then a dropdown list should appear allowing you to select the version you want.
- Click on the Install button and that will add the new library to your
libman.json
file. Make sure to also delete the previous library if Visual Studio doesn't do that for you automatically.
Comments
Post a Comment