简体   繁体   中英

Should I reference ASP.NET MVC as NuGet package?

I've an ASP.NET MVC application which I've upgraded from 2.0 to 3.0 in the past and now I want to upgrade it to 4.0.

I've tried to create a new ASP.NET MVC 4 project in VS2012 and it seems that ASP.NET MVC itself is now a NuGet package.

Should I reference it in form NuGet package like in the new project templates or just reference like 2.0 and pre 3.0 tool update (separate assemblies)?

My servers have ASP.NET MVC 4 installed so having MVC dll's in /Bin seems to be a waste of space.

NuGet nowadays is the way to go. If you are still dealing with assemblies manually, I fear you're doing it wrong.

You definitely should install it through a NuGet package. This will allow you no headaches when new updates appear. NuGet knows how to manage package dependencies correctly, that is, it'll also update all other packages you have installed in your project to make them compatible with the latest ASP.NET MVC . Things are really EVOLVING for the better in this specific case! :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM