ASP.NET MVC3: What is the packages.config for?

2019-01-22 05:39发布

问题:

What is the asp.net MVC packages.config for?

Do I need items in there to reflect what's being used within the site/application?

回答1:

This file is managed by the NuGet infrastructure. It's used to track installed packages with their respective versions. If you installed the ASP.NET MVC 3 Tools Update it uses NuGet by default to track packages such as jQuery, EntityFramework, Modernizr. That's why you might be seeing this file when you create a new bare bone project.



回答2:

To learn more about NuGet (and I highly recommend you do as it is one of the best things to be added to VS and C#/VB in years) look here:

NuGet Frequently Asked Questions

NetGet - Home