--- title: "Build" ---
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.

Runs devenv.exe (Visual Studio) to build the specified project or solution.

Script usage:

DevEnv::Build(
	ProjectFile: <text>,
	Configuration: <text>,
	[Arguments: <text>],
	[DevEnvPath: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Project file
text
ProjectFile
e.g. ProjectName.csproj or SolutionName.sln". This argument is required.
Configuration
text
Configuration
Default value is "Release". This argument is required.
Additional arguments
text
Arguments
Raw command line arguments to pass to devenv.exe.
devenv.exe path
text
DevEnvPath
Full path to devenv.exe. This is usually similar to C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.exe. If no value is supplied, the operation will use vswhere to determine the path to the latest installation of Visual Studio. Default value is "$DevEnvPath".