Summary
Builds the specified solution or MsBuild project file using MSBuild.
Syntax
[CakeMethodAlias]
public static void MSBuild(this ICakeContext context, FilePath solution, Action<MSBuildSettings> configurator)
Examples
MSBuild("./src/Cake.sln", configurator =>
configurator.SetConfiguration("Debug")
.SetVerbosity(Verbosity.Minimal)
.UseToolVersion(MSBuildToolVersion.VS2015)
.SetMSBuildPlatform(MSBuildPlatform.x86)
.SetPlatformTarget(PlatformTarget.MSIL));
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
solution |
FilePath |
The solution or MsBuild project file to build. |
configurator |
Action<MSBuildSettings> |
The settings configurator. |
Return Value