FAKE.Dotnet


Dotnet

Namespace: Fake

.NET Core + CLI tools helpers

Nested types and modules

TypeDescription
BuildConfiguration

build configuration

DotNetBuildOptions

dotnet build command options

DotNetPackOptions

dotnet pack command options

DotNetPublishOptions

dotnet publish command options

DotnetOptions

dotnet cli command execution options

DotnetRestoreOptions

dotnet restore command options

DotnetSdkArchitecture

.NET Core SDK architecture

DotnetSdkInstallOptions

.NET Core SDK install options

DotnetSdkInstallerOptions

.NET Core SDK installer download options

DotnetSdkVersion

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

DotnetVerbosity

dotnet restore verbosity

SdkVersions

Well known DotnetSdk versions

Functions and values

Function or valueDescription
DefaultDotnetSdkDir
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 setOptions args
Signature: setOptions:(DotnetOptions -> DotnetOptions) -> args:string -> ProcessResult

Execute raw dotnet cli command

Parameters

  • 'setOptions' - set dotnet execution options
  • 'args' - command arguments
DotnetBuild setParams projectFile
Signature: setParams:(DotNetBuildOptions -> DotNetBuildOptions) -> projectFile:string -> unit

Execute dotnet build command

Parameters

  • 'setParams' - set compile command parameters
  • 'projectFile' - projectFile to build
DotnetMsbuild (...)
Signature: setMsbuildParams:(MSBuildParams -> MSBuildParams) -> setOptions:(DotnetOptions -> DotnetOptions) -> projectFile:string -> unit

Execute dotnet msbuild command using FAKE msbuild options

Parameters

  • 'setMsbuildParams' - set msbuild command parameters
  • 'setOptions' - set dotnet execution options
  • 'project' - project to compile
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 (Restore dependencies specified in the .NET project)

Parameters

  • 'setParams' - set restore command parameters
  • 'project' - project to restore packages
DotnetSdkDownloadInstaller setParams
Signature: setParams:(DotnetSdkInstallerOptions -> DotnetSdkInstallerOptions) -> string

Download .NET Core SDK installer

Parameters

  • 'setParams' - set download installer options
DotnetSdkInstall setParams
Signature: setParams:(DotnetSdkInstallOptions -> DotnetSdkInstallOptions) -> unit

Install .NET Core SDK if required

Parameters

  • 'setParams' - set installation options