的NuGet包ASP.NET MVC 3 [英] NuGet package for ASP.NET MVC 3
问题描述
我最近开始使用的NuGet,我想知道是否有一个asp.net MVC 3包,我可以安装,使我没有通过lib文件夹引用ASPNET MVC3组件像所有的传统方式引用设置为CopyLocal = TRUE。目前,我有以下组件在我的lib文件夹:
I have recently started to use NuGet and I was wondering if there is an asp.net mvc 3 package that I can install so that I do not have to reference the aspnet mvc3 assemblies via a lib folder like the traditional way with all references set to CopyLocal = true. At the moment I have the following assemblies in my lib folder:
Microsoft.Web.Infrastructure.dll
System.Web.Helpers.dll
System.Web.Mvc.dll
System.Web.Razor.dll
System.Web.WebPages.Administration.dll
System.Web.WebPages.Deployment.dll
System.Web.WebPages.dll
System.Web.WebPages.Razor.dll
任何想法?
推荐答案
如果你正在使用Visual Studio 2010 SP1,您可以右键单击该项目并选择添加部署大会。选择ASP.NET MVC 3选项。这将添加MVC组件,以一个特殊的目录,这将确保他们在bin目录下建立/发布Web应用程序的时候。
If you're using Visual Studio 2010 SP1, you can right click on the project and select "Add Deployable Assemblies". Select the ASP.NET MVC 3 option. That'll add the MVC assemblies to a special directory which will ensure they are in the bin directory when building/publishing your web application.
这篇关于的NuGet包ASP.NET MVC 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!