/Out (devenv.exe)

Specifies a file to store and display errors when you run, run and exit, upgrade, build, rebuild, clean, or deploy a solution.

Syntax

devenv /Out FileName

Arguments

  • FileName

    Required. The path and name of the file to receive output when you build an executable.

Remarks

If a nonexistent file name is specified, the file is created automatically. Otherwise, the file already exists, and the results are appended to the existing contents of the file.

Command-line build errors are displayed in the Command window and the Solution Builder view of the Output window. This switch is useful for viewing results of unattended builds.

Example

This example runs MySolution and writes errors to the file MyErrorLog.txt.

devenv /run "%USERPROFILE%\source\repos\MySolution\MySolution.sln" /out "C:\MyErrorLog.txt"

See also