.net-core - 是否已在ASP.NET Core MVC 2.1中替换了bundleconfig.json?

标签 .net-core asp.net-core-mvc asp.net-core-2.1

当我创建一个新的针对2.1 RC1的ASP.NET MVC Core时,它不会创建用于 bundle 和缩小的bundleconfig.json文件。如果我的目标是2.0,则会创建此文件。

这是一个示例,该解决方案包含一个针对2.0的新项目和另一个针对2.1的项目:
enter image description here

有什么东西取代了内置的 bundle 和缩小功能,还是这只是RC1中的错误?

最佳答案

从2.1模板中删除了bundleconfig.json,因为它依赖于Microsoft未创建或不支持的工具。参见https://github.com/aspnet/templating/issues/326

This file [bundleconfig.json] is for configuring the various incantations of the BundlerMinifier tool, which isn't actually shipped in the templates, or supported by Microsoft.


ASP.NET Core团队已将bundleconfig替换为“libman”。右键单击项目->添加->客户端库,然后添加所需的包

关于.net-core - 是否已在ASP.NET Core MVC 2.1中替换了bundleconfig.json?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50419033/

相关文章:

asp.net-core - 应用程序池回收后,Hangfire 重复作业停止

security - 使用 AspNetUserTokens 表在 ASP.NET Core Web Api 中存储刷新 token

angular - 如何将带有 Angular 表单数据的对象列表发布到 .Net Core Web API

asp.net-core-mvc - 无论 DataAnnotations 属性如何,ModelState.IsValid 始终为 true

asp.net - 发布 f# 项目时出现 dotnet 编译器错误

c# - 在 ASP.NET Core MVC 中自定义响应序列化

asp.net-mvc - 将 RequireHttpsAttribute 添加到过滤器后,无法在 MVC6 应用程序中禁用 SSL 连接

c# - Windows Authentication Asp.net core 2 数据库角色授权

c# - 如何使用 .net core 中组件的特定实例或另一个装饰器对象解析装饰器

c# - 同一模块在 .net 核心上的 AppDomain 中加载了两次