Skip to content

InvokeBuildServerConfigurationGenerationExtAttribute Class

Definition

This is equivalent to Nuke’s Nuke.Common.CI.InvokeBuildServerConfigurationGenerationAttribute, except it supports running code before/after each generated config, and fixes a frequent crash which occurs on Windows due to the AsParallel usage. https://github.com/nuke-build/nuke/issues/857 See https://github.com/nuke-build/nuke/blob/develop/source/Nuke.Common/CI/InvokeBuildServerConfigurationGenerationAttribute.cs

C#
public class InvokeBuildServerConfigurationGenerationExtAttribute : BuildServerConfigurationGenerationAttributeBase, IOnBuildCreated, IBuildExtension

Inheritance objectAttribute → Nuke.Common.Execution.BuildExtensionAttributeBase → Nuke.Common.CI.BuildServerConfigurationGenerationAttributeBase

Implements Nuke.Common.Execution.IOnBuildCreated, Nuke.Common.Execution.IBuildExtension

Methods

OnBuildCreated(IReadOnlyCollection)

C#
public void OnBuildCreated(IReadOnlyCollection<ExecutableTarget> executableTargets)

Parameters

executableTargets IReadOnlyCollection<ExecutableTarget>

BeforeGenerate(INukeBuild, IReadOnlyCollection)

Called before running any generators.

C#
protected virtual void BeforeGenerate(INukeBuild build, IReadOnlyCollection<ExecutableTarget> executableTargets)

Parameters

build Nuke.Common.INukeBuild
The build.

executableTargets IReadOnlyCollection<ExecutableTarget>
The executable targets.

BeforeGenerate(IConfigurationGenerator, INukeBuild, IReadOnlyCollection)

Called before running the generator.

C#
protected virtual void BeforeGenerate(IConfigurationGenerator generator, INukeBuild build, IReadOnlyCollection<ExecutableTarget> executableTargets)

Parameters

generator Nuke.Common.CI.IConfigurationGenerator
The generator.

build Nuke.Common.INukeBuild
The build.

executableTargets IReadOnlyCollection<ExecutableTarget>
The executable targets.

AfterGenerate(IConfigurationGenerator, INukeBuild, IReadOnlyCollection)

Called after running the generator.

C#
protected virtual void AfterGenerate(IConfigurationGenerator generator, INukeBuild build, IReadOnlyCollection<ExecutableTarget> executableTargets)

Parameters

generator Nuke.Common.CI.IConfigurationGenerator
The generator.

build Nuke.Common.INukeBuild
The build.

executableTargets IReadOnlyCollection<ExecutableTarget>
The executable targets.