--- title: "Build MSBuild Project" ---
This is generated from the built in components of BuildMaster 2023.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Builds a project or solution using MSBuild.

Script usage:

MSBuild::Build-Project(
	ProjectFile: <text>,
	[Configuration: <text>],
	[Platform: <text>],
	[MSBuildProperties: <@(text)>],
	[Arguments: <text>],
	[MSBuildToolsPath: <text>],
	[To: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Project file (default)
text
ProjectFile
e.g. ProjectName.csproj or SolutionName.sln". This argument is required.
Configuration
text
Configuration
Default value is "Release".
Target platform
text
Platform
MSBuild properties
@(text)
MSBuildProperties
Additional properties to pass to MSBuild, formatted as key=value pairs.
Additional arguments
text
Arguments
Raw command line arguments to pass to MSBuild.
MSBuild tools path
text
MSBuildToolsPath
Full path of the directory containing the MSBuild tools to use. This is usually similar to C:\Program Files (x86)\MSBuild\14.0\Bin. If no value is supplied, the operation will use vswhere to determine the path to the latest installation of MSBuild. Default value is "$MSBuildToolsPath".
Target directory
text
To
Value note: "Default".