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

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