C# Class Code.Cake.DNXSupport

Provides extension methods for Cake context.
Afficher le fichier Open project: SimpleGitVersion/SGV-Net

Méthodes publiques

Méthode 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

Méthode Description
LoadDNXRuntimeInformation ( ICakeContext context ) : DNXRuntimeInformation

Always create a DNXRuntimeInformation object that may be not valid.

Method Details

DNUBuild() public static méthode

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

DNUPublish() public static méthode

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

DNURestore() public static méthode

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

DNXRun() public static méthode

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.
Résultat void

GetDNXRuntimeInformation() public static méthode

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