Cli

.NET Core + CLI tools helpers

Nested types and modules

TypeDescription
BuildConfiguration

build configuration

DotNetBuildOptions

dotnet build command options

DotNetCliInstallOptions

.NET Core SDK install options

DotNetInfoOptions

dotnet --info command options

DotNetInfoResult

dotnet info result

DotNetInstallerOptions

.NET Core SDK installer download options

DotNetPackOptions

dotnet pack command options

DotNetPublishOptions

dotnet publish command options

DotnetCliArchitecture

.NET Core SDK architecture

DotnetCliVersion

.NET Core SDK version (used to specify version when installing .NET Core SDK)

DotnetOptions

dotnet cli command execution options

DotnetRestoreOptions

dotnet restore command options

NugetRestoreVerbosity

dotnet restore verbosity

Functions and values

Function or valueDescription
DefaultDotnetCliDir
Signature: string

.NET Core SDK default install directory (set to default localappdata dotnet dir). Update this to redirect all tool commands to different location.

Dotnet options args
Signature: options:DotnetOptions -> args:string -> ProcessResult

Execute raw dotnet cli command

Parameters

  • 'options' - common execution options
  • 'args' - command arguments
DotnetCliInstall setParams
Signature: setParams:(DotNetCliInstallOptions -> DotNetCliInstallOptions) -> unit

Install .NET Core SDK if required

Parameters

  • 'setParams' - set installation options
DotnetCompile setParams project
Signature: setParams:(DotNetBuildOptions -> DotNetBuildOptions) -> project:string -> unit

Execute dotnet build command

Parameters

  • 'setParams' - set compile command parameters
  • 'project' - project to compile
DotnetDownloadInstaller setParams
Signature: setParams:(DotNetInstallerOptions -> DotNetInstallerOptions) -> string

Download .NET Core SDK installer

Parameters

  • 'setParams' - set download installer options
DotnetInfo setParams
Signature: setParams:(DotNetInfoOptions -> DotNetInfoOptions) -> DotNetInfoResult

Execute dotnet --info command

Parameters

  • 'setParams' - set info command parameters
DotnetPack setParams project
Signature: setParams:(DotNetPackOptions -> DotNetPackOptions) -> project:string -> unit

Execute dotnet pack command

Parameters

  • 'setParams' - set pack command parameters
  • 'project' - project to pack
DotnetPublish setParams project
Signature: setParams:(DotNetPublishOptions -> DotNetPublishOptions) -> project:string -> unit

Execute dotnet publish command

Parameters

  • 'setParams' - set publish command parameters
  • 'project' - project to publish
DotnetRestore setParams project
Signature: setParams:(DotnetRestoreOptions -> DotnetRestoreOptions) -> project:string -> unit

Execute dotnet restore command

Parameters

  • 'setParams' - set restore command parameters
  • 'project' - project to restore packages
LatestPreview4ToolingOptions options
Signature: options:DotNetCliInstallOptions -> DotNetCliInstallOptions

.NET Core SDK install options preconfigured for preview4 tooling

Preview2ToolingOptions options
Signature: options:DotNetCliInstallOptions -> DotNetCliInstallOptions

.NET Core SDK install options preconfigured for preview2 tooling

Preview4_004233ToolingOptions options
Signature: options:DotNetCliInstallOptions -> DotNetCliInstallOptions

.NET Core SDK install options preconfigured for preview4 tooling

RC4_004771ToolingOptions options
Signature: options:DotNetCliInstallOptions -> DotNetCliInstallOptions

.NET Core SDK install options preconfigured for preview4 tooling

RC4_004973ToolingOptions options
Signature: options:DotNetCliInstallOptions -> DotNetCliInstallOptions

.NET Core SDK install options preconfigured for preview4 tooling, this is marketized as v1.0.1 release of the .NET Core tools

Release_1_0_4 options
Signature: options:DotNetCliInstallOptions -> DotNetCliInstallOptions
Release_2_0_0 options
Signature: options:DotNetCliInstallOptions -> DotNetCliInstallOptions