This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
Summary
Adds multiple .NET build targets to the configuration.
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator . Dot Net Build Extensions - Containing Type
- Dot
Net Build Settings Extensions
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 | Dot |
The settings. |
targets | IEnumerable |
The .NET build targets. |
Return Value
Type | Description |
---|---|
Dot |
The same DotNetMSBuildSettings instance so that multiple calls can be chained. |