XBuildAliases.

XBuild(ICakeContext, FilePath, Action<XBuildSettings>) Method

Summary

Builds the specified solution using XBuild.
Namespace
Cake.Common.Tools.XBuild
Containing Type
XBuildAliases

Syntax

[CakeMethodAlias]
public static void XBuild(this ICakeContext context, FilePath solution, Action<XBuildSettings> configurator)

Examples

XBuild("./src/Cake.sln", configurator =>
    configurator.SetConfiguration("Debug")
        .SetVerbosity(Verbosity.Minimal)
        .UseToolVersion(XBuildToolVersion.NET40));

Attributes

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

Parameters

Name Type Description
context ICakeContext The context.
solution FilePath The solution to build.
configurator Action<XBuildSettings> The settings configurator.

Return Value

Type Description
void