ITestDotNetTemplates Interface
Definition
A build which tests .NET templates.
public interface ITestDotNetTemplates : ICreateDotNetTemplates, IPack, ITest, ICompile, IHasGitVersion, IRestore, IHasArtifacts, INukeBuildProperties
GenerateTemplate
Gets the target to generate the .NET templates.
Target GenerateTemplate { get; }TestTemplates
Gets the target to test the generated .NET templates.
Target TestTemplates { get; }Methods
DotNetRaw(string)
Runs a dotnet command. Note this may be unnecessary once Nuke 7.0.2 is merged.
public static void DotNetRaw(string arguments)Parameters
arguments string
The command arguments.
DotNetNew(string, string, Func<IEnumerable, IEnumerable>)
Runs the dotnet new command.
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.
void RunCI()PrepareToRunTest()
Installs and generates templates for testing.
void PrepareToRunTest()RunGenerateTemplate()
Generates templates for testing.
void RunGenerateTemplate()RunTestTemplates()
Tests the generated templates.
void RunTestTemplates()