Method GetOrCreateBuildArtifact
GetOrCreateBuildArtifact(Type)
Get the first build artifact value that is assignable to specified type, or create and set it if not found. Multiple build artifact value can be stored per build configuration.
Declaration
public IBuildArtifact GetOrCreateBuildArtifact(Type buildArtifactType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | buildArtifactType | The build artifact type. |
Returns
| Type | Description |
|---|---|
| IBuildArtifact | The build artifact value. |
GetOrCreateBuildArtifact<T>()
Get the first build artifact value that is assignable to specified type, or create and set it if not found. Multiple build artifact value can be stored per build configuration.
Declaration
public T GetOrCreateBuildArtifact<T>() where T : class, IBuildArtifact, new()
Returns
| Type | Description |
|---|---|
| T | The build artifact value. |
Type Parameters
| Name | Description |
|---|---|
| T | The build artifact type. |