vcbuild syntax - how to use $ALL?

J

jpetrang

Can you tell me if the vcbuild $ALL is the same as the msdev ALL? If
so, how do I use it?
I have a VS 6.0 command "msdev ProjectName.dsw /make ALL /clean" which,
I believe, builds all the .dsp configurations in the .dsw file. I'm
trying to figure out how to accomplish the same thing using vcbuild.
However, putting in $ALL, ALL, "$ALL" and any other variation I can
think of do not work. Help? What is the proper syntax?

I have already used the new VC++ to open the .dsw file and convert it
to .sln with .vcproj files, and I'm trying to use vcbuild on the
ProjectName.sln file in a similar way.

If vcbuild will not accomplish that, would devenv be a better choice?

A separate questions: I've read that vcbuild has problems with pre
build events, generated cpp files, or projects which have more than one
level of depencency, and that /rebuild should alleviate
"most" issues. Do you know if this is still the case?

Thanks,
JeanneP

PS: responding via email will bounce. Please post. Thank you!
 
C

Carl Daniel [VC++ MVP]

Can you tell me if the vcbuild $ALL is the same as the msdev ALL? If
so, how do I use it?
I have a VS 6.0 command "msdev ProjectName.dsw /make ALL /clean"
which, I believe, builds all the .dsp configurations in the .dsw
file. I'm trying to figure out how to accomplish the same thing using
vcbuild. However, putting in $ALL, ALL, "$ALL" and any other
variation I can think of do not work. Help? What is the proper syntax?

I have already used the new VC++ to open the .dsw file and convert it
to .sln with .vcproj files, and I'm trying to use vcbuild on the
ProjectName.sln file in a similar way.

Just type vcbuild /? at the command prompt for lots of friendly help.

In your case, the equivalent to

msdev /make ALL /clean

is something along the lines of

vcbuild /rebuild mysolution.sln "Release|Win32"
If vcbuild will not accomplish that, would devenv be a better choice?

You can use devenv - it just calls vcbuild to build the C++ projects, but it
can also build MSBuild projects and other visual studio projects that are
neither of the above (e.g. visual studio deployment projects).
A separate questions: I've read that vcbuild has problems with pre
build events, generated cpp files, or projects which have more than
one level of depencency, and that /rebuild should alleviate
"most" issues. Do you know if this is still the case?

I haven't heard of those issues, so I can't help you there.

-cd
 

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

Top