Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clone this wiki locally
#This documentation is now out of date. As of the 1.0.0-rc2 release, ASP.NET Core uses the .NET CLI. For more information on the CLI visit https://docs.microsoft.com/en-us/dotnet/articles/core/tools/index
The DNX Utility (dnu) tool is responsible for all operations involved with packages in your application.
The restore command will look at the dependencies of your application and download them, adding them to your apps packages directory. It downloads the entire graph of dependencies, even though you only explicitly declare the top level things that you directly depend on.
dnu install <package id>)
The install command will download the given package and add it to your application.
The publish command will package your application into a self-contained directory that can be launched. It will create the following directory structure:
The packages directory contains all the packages your application needs to run.
The appName directory will contain all of your applications code, if you have project references they will appear as their own directory with code at this level as well.
The publish command will also hoist any commands from your project.json file into batch files. Running any of these commands is the same as running
Build NuGet packages for the project in given directory
Produce assemblies for the project in given directory
dnu install <packageId>)
Install the given dependency
Commands related to managing local and remote packages folders
Print the dependencies of a given project
Commands related to managing application commands (add, remove)
Wrap a csproj into a project.json, which can be referenced by project.json files
Use "dnu help [command]" for more information about a command.