Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 2.15 KB

out-devenv-exe.md

File metadata and controls

60 lines (46 loc) · 2.15 KB
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
errors [Visual Studio], builds
Devenv, /Out switch
builds [Visual Studio], logs
error logs [Visual Studio], command-line build errors
error logs [Visual Studio]
/Out Devenv switch
Out Devenv switch
builds [Visual Studio], errors
output files, build errors
ghogen
ghogen
mijacobs
general-ide

/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