Command line compile using Devenv.exe
Posted
Sat, Sep 18 2004 1:34
by
bill
Another entry from Duncan’s blog has some tips on doing a command line compile using vbc.exe.
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