MSBuildAliases.

MSBuild(ICakeContext, FilePath, MSBuildSettings) Method

Summary

Builds the specified solution using MSBuild.
Namespace
Cake.Common.Tools.MSBuild
Containing Type
MSBuildAliases

Syntax

[CakeMethodAlias]
public static void MSBuild(this ICakeContext context, FilePath solution, MSBuildSettings settings)

Examples

MSBuild("./src/Cake.sln", new MSBuildSettings {
    Verbosity = Verbosity.Minimal,
    ToolVersion = MSBuildToolVersion.VS2015,
    Configuration = "Release",
    PlatformTarget = PlatformTarget.MSIL
    });

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.
settings MSBuildSettings The settings.

Return Value

Type Description
void