Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Build MSBuild Project

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".