Export (0) Print
Expand All

@ (Specify Response File) (Visual Basic) 

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


@response_file

response_file

Required. A file that lists compiler options or source-code files to compile. Enclose the file name in quotation marks (" ") if it contains a space.

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, such as the following.

@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.

Visual Basic provides the Vbc.rsp file, which is located in the same directory as the Vbc.exe file. The Vbc.rsp file is included by default, unless the /noconfig option is used. For more information, see /noconfig.

NoteNote

The @ option is not available from within the Visual Studio development environment; it is available only when compiling from the command line.

The following lines are from a sample response file.

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

The following example demonstrates how to use the @ option with the response file named File1.rsp.

vbc @file1.rsp

Community Additions

ADD
Show:
© 2015 Microsoft