Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet package for ASP.NET MVC 3

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

Any idea?

like image 641
nabeelfarid Avatar asked May 12 '11 16:05

nabeelfarid


2 Answers

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.

like image 158
Haacked Avatar answered Oct 21 '22 05:10

Haacked


Looks like the "aspnetmvc" NuGet package is what you're looking for.

http://nuget.org/List/Packages/aspnetmvc

N.B. This isn't an official package from Microsoft, but one created by a member of the community.

like image 26
James Kovacs Avatar answered Oct 21 '22 05:10

James Kovacs