DotNetBuildSettingsExtensions.

WithTargets(DotNetMSBuildSettings, IEnumerable<string>) Method

Summary

Adds multiple .NET build targets to the configuration.

Syntax

public static DotNetMSBuildSettings WithTargets(this DotNetMSBuildSettings settings, IEnumerable<string> targets)

Examples

Add many targets to the build settings
var settings = new DotNetMSBuildSettings().WithTargets(new[] { "Clean", "Build", "Publish" });

Parameters

Name Type Description
settings DotNetMSBuildSettings The settings.
targets IEnumerable<string> The .NET build targets.

Return Value

Type Description
DotNetMSBuildSettings The same DotNetMSBuildSettings instance so that multiple calls can be chained.