This documentation is archived and is not being maintained.

@ (Specify Response File)

Specifies a file that contains compiler options and source code files to compile.

@response_file

Arguments

response_file
Required. A file that lists compiler options or source code files to compile.

Remarks

The compiler processes the compiler options and source code files specified in a response file as if they had been specified on the command line.

To specify more than one response file in a compilation, specify multiple response file options. For example:

@file1.rsp @file2.rsp

In a response file, multiple compiler options and source code files can appear on one line. A single compiler option specification must appear on one line (cannot span multiple lines). Response files can have comments that begin with the # symbol.

You can combine options specified on the command line with options specified in one or more response files. The compiler processes the command options as it encounters them. Therefore, command-line arguments can override previously listed options in response files. Conversely, options in a response file override options listed previously on the command line or in other response files.

Note   The @ option is not available from within the Visual Studio development environment; it is available only when compiling from the command line. It cannot be changed programmatically.

Example

The following are a few lines from a sample response file:

# build the first output file
/target:exe 
/out:MyExe.exe
source1.vb 
source2.vb

See Also

Visual Basic Compiler Options | Sample Compilation Command Lines

Show: