title | description | ms.date | ms.topic | helpviewer_keywords | author | ms.author | manager | ms.subservice | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-Out (devenv.exe) |
Learn how to use the Out devenv command-line switch to specify a file to store and display errors when you run, run and exit, upgrade, build, rebuild, clean, or deploy a solution. |
12/10/2018 |
reference |
|
ghogen |
ghogen |
mijacobs |
general-ide |
Specifies a file to store and display errors when you run, run and exit, upgrade, build, rebuild, clean, or deploy a solution.
devenv /Out FileName
-
FileName
Required. The path and name of the file to receive output when you build an executable.
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.
This example runs MySolution
and writes errors to the file MyErrorLog.txt
.
devenv /run "%USERPROFILE%\source\repos\MySolution\MySolution.sln" /out "C:\MyErrorLog.txt"