- Initialize a new .NET project:
dotnet new template_short_name
- Restore nuget packages:
- Build and execute the .NET project in the current directory:
- Run a packaged dotnet application (only needs the runtime, the rest of the commands require the .NET Core SDK installed):
dotnet [--version] [--help] [--verbose] < command > [< args >]
dotnet is a generic driver for the CLI toolchain. Invoked on its own, it will give out brief usage instructions.
Each specific feature is implemented as a command. In order to use the feature, it is specified after dotnet, i.e.
dotnet compile. All of the arguments following the command are command's own arguments.
Enable verbose output.
Print out the version of the CLI tooling
Print out a short help and a list of current commands.
The following commands exist for dotnet.
Compile the application to either an intermidiate language (IL) or to a native binary.
Restores the dependencies for a given application.
Runs the application from source.
Publishes a flat directory that contains the application and its dependencies, including the runtime binaries.
Runs tests using a test runner specified in project.json.
Initializes a sample .NET Core console application.
Initializes a sample .NET Core console application that can be compiled and ran.
Restores dependencies for a given application.
Compiles the application in a given directory.
The primary package cache. If not set, defaults to $HOME/.nuget/packages on Unix or %LOCALAPPDATA%\NuGet\Packages (TBD) on Windows.
The secondary cache. This is used by shared hosters (such as Azure) to provide a cache of pre-downloaded common packages on a faster disk. If not set it is not used.
Specifies the location of the servicing index to use by the shared host when loading the runtime.
dotnet-compile(1), dotnet-run(1), dotnet-publish(1), dotnet-restore(1)
Zlatko Knezevic email@example.com.