macos - WebStatus 不会编译 : The "jquery@3.4.1" library could not be resolved by the "cdnjs" provider

标签 macos .net-core libman

我这里有 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/

相关文章:

java - 从 Mac OS X 上的 .app 文件夹运行 hdiutil 等外部程序

Swift - NSShadow 上的 shadowOpacity 在哪里?

c++ - 使用 execv 和 shell exec 的问题

c# - 如何在两个不同的 .NET Core 应用程序之间共享加密数据?

azure - 使用 Key Vault 和包管理器控制台连接 Entity Framework Core 并进行数据库迁移

macos - 是否有热键可以选择我在 unix 命令中输入的所有文本?

c# - 基于操作系统的不同NuGet软件包

typescript - Bootstrap4 types(index.d.ts) 在使用 TypeScript 3.9 和 Libman 的 Visual Studio 2019 上找不到模块 'popper.js'

javascript - 如何在 VS Code 中使用 Libman json 文件?