C# Class Code.Cake.DNXSupport

Provides extension methods for Cake context.
Exibir arquivo Open project: SimpleGitVersion/SGV-Net

Public Methods

Method Description
DNUBuild ( this context, Action config ) : void

Runs dnu build.

DNUPublish ( this context, Action config ) : void

Runs dnu publish

DNURestore ( this context, Action config ) : void

Runs dnu restore.

DNXRun ( this context, Action config ) : void

Runs a dnx command, automatically switching the runtime (ie. dnvm use) based on config.DNXRunSettings.EstimatedRuntime property if this estimated runtime is not the current one (see GetDNXRuntimeInformation).

GetDNXRuntimeInformation ( this context ) : DNXRuntimeInformation

Gets the DNX runtime information. Never null but DNXRuntimeInformation.IsValid may be false.

Private Methods

Method Description
LoadDNXRuntimeInformation ( ICakeContext context ) : DNXRuntimeInformation

Always create a DNXRuntimeInformation object that may be not valid.

Method Details

DNUBuild() public static method

Runs dnu build.
public static DNUBuild ( this context, Action config ) : void
context this This cake context.
config Action The configuration to use.
return void

DNUPublish() public static method

Runs dnu publish
public static DNUPublish ( this context, Action config ) : void
context this This cake context.
config Action The configuration to use.
return void

DNURestore() public static method

Runs dnu restore.
public static DNURestore ( this context, Action config ) : void
context this This cake context.
config Action The configuration to use.
return void

DNXRun() public static method

Runs a dnx command, automatically switching the runtime (ie. dnvm use) based on config.DNXRunSettings.EstimatedRuntime property if this estimated runtime is not the current one (see GetDNXRuntimeInformation).
public static DNXRun ( this context, Action config ) : void
context this This cake context.
config Action The configuration to use.
return void

GetDNXRuntimeInformation() public static method

Gets the DNX runtime information. Never null but DNXRuntimeInformation.IsValid may be false.
public static GetDNXRuntimeInformation ( this context ) : DNXRuntimeInformation
context this The cake context.
return DNXRuntimeInformation