我这里有 eShopOnContainers 解决方案:https://github.com/dotnet-architecture/eShopOnContainers .在过去的几年里,我一直在积极地研究它的变体。今天早上我试图编译它,但 WebStatus 项目导致了这个错误:
libman.json(0,0): Error LIB002: The "jquery@3.4.1" library could not be resolved by the "cdnjs" provider
我找到了这个:https://github.com/aspnet/LibraryManager/issues/685还有这个:https://issuemode.com/issues/cdnjs/cdnjs/94570425 (昨天更新)
到目前为止,我已经尝试了文章中的建议:
dotnet tool install -g Microsoft.Web.LibraryManager.Cli(安装版本 2.1.75) libman 缓存清理 库曼恢复
还有什么我可以尝试的吗?我的 Libman.json 看起来像这样:
{
"version": "1.0",
"defaultProvider": "cdnjs",
"libraries": [
{
"library": "jquery@3.4.1",
"destination": "wwwroot/lib/jquery/"
},
{
"provider": "unpkg",
"library": "bootstrap@4.1.3",
"files": [
"dist/css/bootstrap.css",
"dist/css/bootstrap.css.map",
"dist/css/bootstrap.min.css",
"dist/css/bootstrap.min.css.map",
"dist/js/bootstrap.js",
"dist/js/bootstrap.min.js"
],
"destination": "wwwroot/lib/bootstrap/"
}
]
}
最佳答案
试试这个:
-右击libman.json
- 在构建时禁用客户端库
构建项目
关于macos - WebStatus 不会编译 : The "jquery@3.4.1" library could not be resolved by the "cdnjs" provider,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73174587/