---
title: "Build MSBuild Project"
---
Builds a project or solution using MSBuild.
MSBuild::Build-Project(
ProjectFile: <text>,
[Configuration: <text>],
[Platform: <text>],
[MSBuildProperties: <@(text)>],
[Arguments: <text>],
[MSBuildToolsPath: <text>],
[To: <text>]
);
Name | Format | Script Usage | Usage 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". |