Can I compile a whole project under command prompt?

  • Thread starter Thread starter wangyang
  • Start date Start date
W

wangyang

You know,I can compile a .vb file,such
as "vbc /t:library /out:fibonacci_vb.dll fibonacci.vb".
But can I compile a whole project under command prompt?
 
BAT is good, and look at the repsonse file option for the compiler.
 
wangyang said:
You know,I can compile a .vb file,such
as "vbc /t:library /out:fibonacci_vb.dll fibonacci.vb".
But can I compile a whole project under command prompt?

Have a look at the NAnt project: http://nant.sf.net
 
it is possible to tell VS to build a project from the command line
run
devenv /?

to get help.
 
Using VSN 7.1, I can build a solution using a batch file
invoking devenv.. However I run into problems when I have
C++ projects in my solution... The contents of my batch
file are this:

set devenv="C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\devenv"
call "C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat"
cd <directory>
%devenv% MySolution.sln /rebuild Debug

In a clean source tree, if I run the batch file, it doesn't
work.. But if I open the solution and build in the VSN IDE,
then rerun the batch file, the build works... The
difference in the two builds is that in a clean source
tree, the batch file doesn't copy all of the necessary
assemblies into the Debug folder, it misses one in my case.
But if everything has already been built ala the VSN IDE,
then running the batch file correctly copies ALL of the
assemblies into the directory. Why does this happen?

Another thing to note is this.. If I delete the Debug
folder after a successful build in the IDE, then the batch
file will fail until I build the solution from the IDE.

ARGH.

Carter
 

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