Ver Mensaje Individual
Antiguo 13/08/2005, 12:52   #4
Voyager
Hasta el infinito...
 
Avatar de Voyager
 
Fecha de ingreso: 23/dic/2002
Mensajes: 31.222
Voyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foroVoyager Leyenda viva del foro
Another approach you can take is if you have Visual Studio on the machine, use Devenv.exe. This allows you to easily build multiple projects as defined in a solution (.sln file) It also takes advantage of the information stored in .vbproj files that list the relevant references. The syntax is incredibly simple, eg:

Devenv.exe MySolution.sln /build Release

Note how you can specify which build configuration to build (typically Debug or Release)

So, even if you are generating the code files, you might want to generate the vbproj files as well rather than the focus on the vbc command line command. That way the project can be easily opened in VS.NET as well as easily compiled from the command line.

Hopefully one day in the not too distant future they will release a vbproj pre-processor that passes the info off to vbc.exe, hence allowing simple command line compiling without the need for VS.NET on the machine

Otra alternativa si tiene instalado Visual Studio en la máquina, es utilizar Devenv.exe. Esto permite construir multiples proyectos múltiples de forma sencilla como hemos definido en la solución (archivo sln) Nos aprovecharemos de la información almacenada en los archivos del vbproj que enumeran las referencias relevantes. La sintaxis es increíblemente simple, ej:

Devenv.exe MySolution.sln /build

Observe que puede especificar la configuración de la estructura a construir (normalmente depuracion o aplicacion)

Así pues, aunque usted está generando los archivos del código, puede que quisiera generar los archivos del vbproj simplemente con el comando vbc en la ventana de linea de comandos. De esa forma el proyecto se puede abrir fácilmente en VS.NET asi como compilar facilmente en linea de comandos.

[B]Esperemos que un dia no muy lejano lancen un preprocesador del vbproj que pase la info de fondo a vbc.exe, de modo que permita compilar en linea de comandos sin la necesidad de tener instalado VS.NET en la máquina.[/B]
__________________
"Aquel que es cruel con los animales se vuelve tosco en su trato con los hombres. Se puede juzgar el corazón de un hombre por su trato a los animales."
(Inmanuel Kant)
Voyager está desconectado
Respuesta rápida a este mensaje
Responder Citando Subir