Compiling from the command line

  • Thread starter Thread starter Ron L
  • Start date Start date
R

Ron L

I have a VB solution which consists of a number of projects. When I put the
executable out for QA, it would be nice to be able to run a script that goes
into Source Safe and does a Get Latest and then compiles the code. I think
I have the Source Safe portion figured out, but can anyone tell me how to
compile the solution (and each of its projects) from the command line?

TIA
Ron L
 
You can use:

devenv.exe /build <configuration> <solution_or_project_file>

or similar. Type devenv.exe /? at the command prompt to see the available
options and switches.

To use Source Safe from the command-line you have to use ss.exe (Win32
folder) and its available options and switches.

Also, you have 3rd party solutions such as www.finalbuilder.com to make all
it graphically and better than using .bat or .vbs files...

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Carlos

Thanks for your response. I will take a look at that. Do you know what the
difference between this and VBC is? I stumbled across VBC after I posted my
original question.

Thanks,
Ron L
 
I am not sure but I suppose that VBC is the VB.NET compiler, part of the
..NET Framework SDK, and that is called by the VS.NET IDE (devenv.exe).

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Do you know what the difference between this and VBC is?

VBC is the Visual Basic compiler and it requires an awful lot more
on the command line to make it work (like an entry for /every/
referenced assembly); devenv deals with all this implicitly.

Also, if you're running this from a DOS Batch file, I recommend
using devenv.com rather than devenv.exe.

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top