ASP.NET MVC, Web API and Web Pages use NuGet to help you easily incorporate components for certain functions. You can incorporate these dependencies into the solution more easily using the NuGet Package Restore feature and the public NuGet feed managed by Outercurve Foundation. Within these projects, themselves, we have implemented a config file that invokes NuGet’s Packager Restore feature. If you wish to incorporate these dependencies, run either of the following two commands in the root directory:

build RestorePackages
build

By running “build RestorePackages” or “build”, you will be initiating the download of other software from a NuGet-based feed that is owned by the Outercurve Foundation. You are responsible for locating, reading and complying with the license terms that accompany each such software. Each software that you obtain through this feed is licensed to you by its respective owner. Microsoft grants you no rights for non-Microsoft software from this feed.

List of NuGet Packages

Last edited Oct 11, 2012 at 6:57 PM by davidmatson, version 16

Comments

anttattoo Sep 17 at 1:10 PM 
No comment

davidmatson Oct 11, 2012 at 6:59 PM 
brynkeller and mathewrphillips, Thanks for the comments. We've updated the build command so that it no longer requires having the project root directory as your working directory.

brynkeller Jun 29, 2012 at 3:35 AM 
And you have to run it from a command prompt - powershell won't do (or perhaps it would if you started powershell after cd'ing into the project root).

eugeneagafonov Apr 20, 2012 at 10:38 AM 
I got "(407) Proxy Authentication Required" error running build RestorePackages. However I managed to resolve this, editing WebStack.NuGet.targets. Find the code:

zipTempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());

and insert the following lines after:

WebProxy proxy = new WebProxy("yourproxyname:port");
proxy.Credentials =CredentialCache.DefaultCredentials;
webClient.Proxy = proxy;

save the file, and run "build RestorePackages" again.

Maybe its worthy to use the "Enable NuGet Package Restore" option for this solution.

scottw512 Mar 30, 2012 at 6:17 PM 
I successfully git clone the repository, but the build RestorePackages gives me the error, Could not establish trust relationship for the SSL/TLS secure channel. [C:\aspnetwebstack\src\Microsoft.Web.WebPages.OAuth\Microsoft.Web.

How can I get around this? Thanks.

mathewrphillips Mar 28, 2012 at 1:48 AM 
Just in case anyone is confused, the "build RestorePackages" command needs to be run from the command line from the project root directory