BuildEnvironment.

WithTargetsToBuild(string[]) Method

Summary

Clones the build environment with a different set of build targets.
Namespace
Buildalyzer.Environment
Containing Type
BuildEnvironment

Syntax

public BuildEnvironment WithTargetsToBuild(params string[] targets)

Parameters

Name Type Description
targets string[] The targets that should be used to build the project. Specifying an empty array indicates that the ProjectAnalyzer should return a Microsoft.Build.Execution.ProjectInstance without building the project.

Return Value

Type Description
BuildEnvironment A new build environment with the specified targets.