2017-10-29 13:26:14 +00:00
|
|
|
# dotnet
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> Cross platform .NET command-line tools for .NET Core.
|
2021-09-13 09:21:21 +01:00
|
|
|
> Some subcommands such as `dotnet build` have their own usage documentation.
|
2019-06-08 01:04:00 +01:00
|
|
|
> More information: <https://docs.microsoft.com/dotnet/core/tools>.
|
2017-10-29 13:26:14 +00:00
|
|
|
|
|
|
|
- Initialize a new .NET project:
|
|
|
|
|
|
|
|
`dotnet new {{template_short_name}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Restore NuGet packages:
|
2017-10-29 13:26:14 +00:00
|
|
|
|
|
|
|
`dotnet restore`
|
|
|
|
|
|
|
|
- Build and execute the .NET project in the current directory:
|
|
|
|
|
|
|
|
`dotnet run`
|
|
|
|
|
|
|
|
- Run a packaged dotnet application (only needs the runtime, the rest of the commands require the .NET Core SDK installed):
|
|
|
|
|
|
|
|
`dotnet {{path/to/application.dll}}`
|