Visual Basic Compiler Options  

/out

Specifies the name of the output file.

/out:filename

Arguments

filename
Required. The name of the output file the compiler creates.

Remarks

The compiler expects to find one or more source code files following the /out option.

Specify the full name and extension of the file to create. If you do not, the .exe file takes its name from the source code file containing the Sub Main procedure, and the .dll file takes its name from the first source code file.

To set /out in the Visual Studio integrated development environment

  1. Open the project's Property Pages dialog box. For details, see <Projectname> Property Pages Dialog Box.
  2. Click the Common Properties folder.
  3. Click the General property page.
  4. Modify the Assembly name property.

To set /out programmatically

Example

The following code compiles t2.vb and creates output file t2.exe:

vbc t2.vb /out:t3.exe 

See Also

Visual Basic Compiler Options | /target | Sample Compilation Command Lines