Nuke.Cola
Loading...
Searching...
No Matches
Nuke.Cola.BuildPlugins.DotnetCommon Class Reference

Static Package Functions

static ScriptDllLocation GetDllLocationOfScript (AbsolutePath scriptPath, AbsolutePath outputDirIn)
 
static AbsolutePath CompileScript (AbsolutePath scriptPath, AbsolutePath outputDirIn)
 Compiles a C# script into a DLL with dotnet-script, which needs to be installed at least into the context of the provided working directory before using this function. The resulting binary will have a GUID as a file name.
 
static AbsolutePath CompileProject (AbsolutePath projectPath, AbsolutePath outputDirIn)
 
static IEnumerable< ImportableGetBuildInterfaces (this Assembly assembly, AbsolutePath? sourcePath=null, bool importViaSource=false)
 Get the build interfaces of an input assembly inheriting Nuke.Common.INukeBuild.
 
static void Log (this string text)
 

Properties

static LogFactory DotnetScriptLogFactory [get]
 

Static Private Attributes

static ? LogFactory DotnetScriptLogFactoryInstance = null
 

Detailed Description

Definition at line 22 of file DotnetCommon.cs.

Member Function Documentation

◆ CompileProject()

static AbsolutePath Nuke.Cola.BuildPlugins.DotnetCommon.CompileProject ( AbsolutePath projectPath,
AbsolutePath outputDirIn )
staticpackage

Definition at line 81 of file DotnetCommon.cs.

◆ CompileScript()

static AbsolutePath Nuke.Cola.BuildPlugins.DotnetCommon.CompileScript ( AbsolutePath scriptPath,
AbsolutePath outputDirIn )
staticpackage

Compiles a C# script into a DLL with dotnet-script, which needs to be installed at least into the context of the provided working directory before using this function. The resulting binary will have a GUID as a file name.

Parameters
scriptPathPath to a *.csx file
outputDirInThe parent directory in which the directory of published binaries will be put
Returns
The path of the newly created DLL

Definition at line 51 of file DotnetCommon.cs.

◆ GetBuildInterfaces()

static IEnumerable< Importable > Nuke.Cola.BuildPlugins.DotnetCommon.GetBuildInterfaces ( this Assembly assembly,
AbsolutePath? sourcePath = null,
bool importViaSource = false )
staticpackage

Get the build interfaces of an input assembly inheriting Nuke.Common.INukeBuild.

◆ GetDllLocationOfScript()

static ScriptDllLocation Nuke.Cola.BuildPlugins.DotnetCommon.GetDllLocationOfScript ( AbsolutePath scriptPath,
AbsolutePath outputDirIn )
staticpackage

Definition at line 32 of file DotnetCommon.cs.

◆ Log()

static void Nuke.Cola.BuildPlugins.DotnetCommon.Log ( this string text)
staticpackage

Definition at line 127 of file DotnetCommon.cs.

Member Data Documentation

◆ DotnetScriptLogFactoryInstance

? LogFactory Nuke.Cola.BuildPlugins.DotnetCommon.DotnetScriptLogFactoryInstance = null
staticprivate

Definition at line 24 of file DotnetCommon.cs.

Property Documentation

◆ DotnetScriptLogFactory

LogFactory Nuke.Cola.BuildPlugins.DotnetCommon.DotnetScriptLogFactory
staticgetprivate

Definition at line 25 of file DotnetCommon.cs.


The documentation for this class was generated from the following file: