Partilhar via


/recurse

Compiles source-code files in all child directories of either the specified directory or the project directory.

/recurse:[dir\]file

Arguments

  • dir
    Optional. The directory in which you want the search to begin. If not specified, the search begins in the project directory.

  • file
    Required. The file(s) to search for. Wildcard characters are allowed.

Comentários

You can use wildcards in a file name to compile all matching files in the project directory without using /recurse. If no output file name is specified, the compiler bases the output file name on the first input file processed. This is generally the first file in the list of files compiled when viewed alphabetically. For this reason, it is best to specify an output file using the /out option.

ObservaçãoObservação

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

Exemplo

The following code compiles all Visual Basic files in the current directory.

vbc *.vb

The following code compiles all Visual Basic files in the Test\ABC directory and any directories below it, and then generates Test.ABC.dll.

vbc /target:library /out:Test.ABC.dll /recurse:Test\ABC\*.vb

Consulte também

Referência

/out (Visual Basic)

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

Outros recursos

Compilador do Visual Basic