DotNetBuildAliases.

DotNetBuild(ICakeContext, FilePath, Action<DotNetBuildSettings>) Method

Summary

Builds the specified solution using MSBuild or XBuild.
Namespace
Cake.Common.Tools
Containing Type
DotNetBuildAliases

Syntax

[CakeMethodAlias]
[Obsolete("Use MSBuild or XBuild instead.")]
public static void DotNetBuild(this ICakeContext context, FilePath solution, Action<DotNetBuildSettings> configurator)

Examples

DotNetBuild("./project/project.sln", settings =>
    settings.SetConfiguration("Debug")
        .SetVerbosity(Core.Diagnostics.Verbosity.Minimal)
        .WithTarget("Build")
        .WithProperty("TreatWarningsAsErrors","true"));

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
ObsoleteAttribute

Parameters

Name Type Description
context ICakeContext The context.
solution FilePath The solution.
configurator Action<DotNetBuildSettings> The configurator.

Return Value

Type Description
void