Skip to content

ITestDotNetTemplates Interface

Definition

A build which tests .NET templates.

C#
public interface ITestDotNetTemplates : ICreateDotNetTemplates, IPack, ITest, ICompile, IHasGitVersion, IRestore, IHasArtifacts, INukeBuild

Properties

GenerateTemplate

Gets the target to generate the .NET templates.

C#
Target GenerateTemplate { get; }

TestTemplates

Gets the target to test the generated .NET templates.

C#
Target TestTemplates { get; }

Methods

DotNetRaw(string)

Runs a dotnet command. Note this may be unnecessary once Nuke 7.0.2 is merged.

C#
public static void DotNetRaw(string arguments)

Parameters

arguments string
The command arguments.

DotNetNew(string, string, Func<IEnumerable, IEnumerable>)

Runs the dotnet new command.

C#
public static void DotNetNew(string templateName, string output, Func<IEnumerable<string>, IEnumerable<string>> args)

Parameters

templateName string
The .NET template.

output string
The output folder.

args Func<IEnumerable<string>, IEnumerable<string>>
A function to modify the arguments.

RunCI()

Runs the continuous integration targets to restore and compile.

C#
void RunCI()

PrepareToRunTest()

Installs and generates templates for testing.

C#
void PrepareToRunTest()

RunGenerateTemplate()

Generates templates for testing.

C#
void RunGenerateTemplate()

RunTestTemplates()

Tests the generated templates.

C#
void RunTestTemplates()