本文介绍了ASP.NET Core MVC 2.1中是否已替换了bundleconfig.json?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

当我创建一个针对2.1 RC1的新ASP.NET MVC Core时,它没有创建用于捆绑和缩小的bundleconfig.json文件。如果我定位到2.0,则会创建此文件。

When I create a new ASP.NET MVC Core targeting 2.1 RC1, it doesn't create the bundleconfig.json file which is used for bundling and minification. This file is created if I target 2.0.

下面是一个示例,该解决方案包含一个针对2.0的新项目和另一个针对2.1的项目:

Here is a example, the solution contains a new project targeting 2.0 and another targeting 2.1:

是否已替换了内置的捆绑和缩小功能,或者这仅仅是RC1中的错误?

Has something replaced the builtin bundling and minification, or is this just a bug in RC1?

推荐答案

bundleconfig.json已从2.1模板中删除,因为它依赖于Microsoft未创建或不支持的工具。参见。。 p>

bundleconfig.json was removed from the 2.1 templates because it relied on a tool not created or supported by Microsoft. See https://github.com/aspnet/templating/issues/326.

ASP.NET Core团队正在考虑将其替换为 libman,它将成为受支持的Visual Studio。特征。不过,这项工作尚未完成。参见

The ASP.NET Core team is considering replacing this with "libman", which is going to be a supported Visual Studio feature. This work isn't done yet, though. See https://github.com/aspnet/templating/issues/471

这篇关于ASP.NET Core MVC 2.1中是否已替换了bundleconfig.json?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 16:07