Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restoring packages from cdnjs is failing #686

Closed
stebueh opened this issue Jun 20, 2022 · 2 comments
Closed

restoring packages from cdnjs is failing #686

stebueh opened this issue Jun 20, 2022 · 2 comments

Comments

@stebueh
Copy link

stebueh commented Jun 20, 2022

Describe the bug

In our ASP.NET Core web application, we manage our client-side libraries in a libman.json file and restore them during build using the "Microsoft.Web.LibraryManager.Build" PackageReference in the .csproj. We use cdnjs as the default provider.

Starting today, the restore during build fails with the first client-side library to be restored:

Severity Code Description Project File Line Suppression State
Error LIB002 The "[email protected]" library could not be resolved by the "cdnjs" provider yyyy.zzzz C:\Users\xxxx\source\repos\yyyy\src\yyyy.zzzz\libman.json 5

cdnjs started rolling out some API change, which might be the reason for the failed restore, see cdnjs/cdnjs#14140

Expected behavior

client-side libraries should be downloaded

Additional context

Visual Studio 2022 17.2.4
Using the "Microsoft.Web.LibraryManager.Build" PackageReference with my ASP.NET Core Project

@PromoFaux
Copy link

Workaround is to clear cache (YMMV!)

cdnjs/cdnjs#14141 (comment)

@stebueh
Copy link
Author

stebueh commented Jun 20, 2022

duplicate of #685, closing

@stebueh stebueh closed this as completed Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants