---
title: "Build"
---
Runs devenv.exe (Visual Studio) to build the specified project or solution.
DevEnv::Build(
ProjectFile: <text>,
Configuration: <text>,
[Arguments: <text>],
[DevEnvPath: <text>]
);
Name | Format | Script Usage | Usage 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". |