Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
devenv /Out 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
devenv /run "%USERPROFILE%\source\repos\MySolution\MySolution.sln" /out "C:\MyErrorLog.txt"