Compartilhar via


/out (Visual Basic)

Specifies the name of the output file.

/out:filename

Arguments

Term

Definition

filename

Required. The name of the output file the compiler creates. If the file name contains a space, enclose the name in quotation marks (" ").

Comentários

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.

Se você especificar um nome de arquivo sem extensão. exe ou. dll, o compilador adiciona automaticamente a extensão para você, dependendo do valor especificado para o /target opção do compilador.

To set /out in the Visual Studio integrated development environment

  1. Have a project selected in Solution Explorer. On the Project menu, click Properties. For more information, see Introdução ao Project Designer.

  2. Click the Application tab.

  3. Modify the value in the Assembly Name box.

Exemplo

The following code compiles T2.vb and creates output file T2.exe.

vbc t2.vb /out:t3.exe

Consulte também

Referência

/target (Visual Basic)

Exemplos de Linhas de Comando de Compilação (Visual Basic)

Outros recursos

Compilador do Visual Basic