Partager via


/Out (devenv.exe)

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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

Syntax

devenv /out FileName

Arguments

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

Remarks

If a file name that does not exist is specified, the file is created automatically. If the file already exists, 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 option is useful if you are running unattended builds and need to see the results.

Example

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

devenv /run "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /out "C:\MyErrorLog.txt"

See Also

Devenv Command Line Switches /Run (devenv.exe) /Build (devenv.exe) /Rebuild (devenv.exe) /Deploy (devenv.exe)