我在哪里可以得到MVC4的源代码

时间:2022-04-18 15:06:02

I would like to look into the way bundling is implemented. It seems like there is default bundling as my MVC project knows all about adding in javascripts that I don't have and never explicitly included.

我想研究捆绑销售的实现方式。似乎有默认绑定,因为我的MVC项目知道在javascript中添加我没有也从未明确包含的东西。

2 个解决方案

#1


1  

Bundle is simply logical group of files that could be referenced by unique name and being loaded with one HTTP request. Two things that will help you use these new features, are RegisterTemplateBundles() and EnableDefaultBundles().

Bundle是一个简单的逻辑组文件,可以通过唯一的名称引用,并装载一个HTTP请求。两个可以帮助您使用这些新特性的东西是registertemplatebundle()和enabledefaultbundle()。

Bundling of scripts is a new feature in MVC 4, to learn more about it take a look at New in ASP.NET MVC4: Bundling and Minification and Yet Another Bundling Approach for MVC 4

脚本打包是MVC 4中的一个新特性,要了解更多关于它的信息,请查看ASP中的新特性。NET MVC4:捆绑和缩小以及MVC4的另一种捆绑方式

The purpose of bundling and minification is to help increase the performance of your Websites by reducing the number and size of HTTP Requests to the server.

捆绑和缩小的目的是通过减少对服务器的HTTP请求的数量和大小来帮助提高网站的性能。

If you want code examples you can find walk-troughs and source examples in Visual Studio's Nuget package manager. There are many other sources, comment if you want me to add more.

如果您想要代码示例,可以在Visual Studio的Nuget包管理器中找到走过的低谷和源代码示例。还有很多其他的来源,如果你想让我补充更多。

#2


1  

I believe it's at: http://aspnetwebstack.codeplex.com/

我相信它是:http://aspnetwebstack.codeplex.com/。

#1


1  

Bundle is simply logical group of files that could be referenced by unique name and being loaded with one HTTP request. Two things that will help you use these new features, are RegisterTemplateBundles() and EnableDefaultBundles().

Bundle是一个简单的逻辑组文件,可以通过唯一的名称引用,并装载一个HTTP请求。两个可以帮助您使用这些新特性的东西是registertemplatebundle()和enabledefaultbundle()。

Bundling of scripts is a new feature in MVC 4, to learn more about it take a look at New in ASP.NET MVC4: Bundling and Minification and Yet Another Bundling Approach for MVC 4

脚本打包是MVC 4中的一个新特性,要了解更多关于它的信息,请查看ASP中的新特性。NET MVC4:捆绑和缩小以及MVC4的另一种捆绑方式

The purpose of bundling and minification is to help increase the performance of your Websites by reducing the number and size of HTTP Requests to the server.

捆绑和缩小的目的是通过减少对服务器的HTTP请求的数量和大小来帮助提高网站的性能。

If you want code examples you can find walk-troughs and source examples in Visual Studio's Nuget package manager. There are many other sources, comment if you want me to add more.

如果您想要代码示例,可以在Visual Studio的Nuget包管理器中找到走过的低谷和源代码示例。还有很多其他的来源,如果你想让我补充更多。

#2


1  

I believe it's at: http://aspnetwebstack.codeplex.com/

我相信它是:http://aspnetwebstack.codeplex.com/。