Why does the packages folder exist and how to make it work?

I have a WebSite project in VS2010. The folder structure is similar:

../packages
../Website
../Website.DataAccess
etc.

I am trying to open a site by opening the root folder in VS2010 / Open Website. But when I do this, it doesn't seem to have all the links, like System.Web.Helper, System.Web.Mvc, etc. Type error messages:

Failed to load file or assembly "System.Web.Helpers, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" or one of its dependencies. The system cannot find the specified file.

continue to be displayed.

So why is this folder β€œpackages”? Should he automatically allow me to open a website project without worrying about all the links / collections?

-, , WebSite "packages" , WebSite?

1: , nuget: install-package system.web.helpers

: The current environment doesn't have a solution open.

WebSite, . , , .

+5
3
+6

NuGet Visual Studio. Visual Studio, Tools -> Extension Manager NuGet, .

- node Solution Explorer Manage NuGet Packages..., .

NuGet / packages.config? .

+4

You do not need to "make it work." You cannot edit it correctly without NuGet, but it must contain the binaries needed to create your project, even without installing NuGet.

0
source

All Articles