Command Line Compilatins

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I've worked with VC6 and implemented all my builds on the commadline using the nmake tool with the make file. Now we are moving to dotnet and I need a tool similar to that that will enable me do all my compilations/builds on the command line. Problem is the dotnet IDE does not generate make files or maybe I don't know how to, now I need a tool that can generate the make file from the .csproj file. How can I also tell devenv on the comman line to use my own defined OUTDIR and INTDIR

Please Hel
 
theSentinel said:
Hi,

I've worked with VC6 and implemented all my builds on the commadline
using the nmake tool with the make file. Now we are moving to dotnet
and I need a tool similar to that that will enable me do all my
compilations/builds on the command line. Problem is the dotnet IDE
does not generate make files or maybe I don't know how to, now I need
a tool that can generate the make file from the .csproj file. How can
I also tell devenv on the comman line to use my own defined OUTDIR
and INTDIR.

I assume you're looking for a tool to create makefiles from a .vcproj file,
yes? The .csproj file you mentioned is a C# project, not C++.

Your VC6 makefiles will still work with VC7{.1} tools. Yes, you're
correct - there is no function in the devenv IDE to produce a makefile. One
option is to use one of the free workspace convertors to convert your
VC7{.1} project to VC6 and then export the makefile from VC6. That sounds a
bit tedious.

Another option is to use VCBuild, which is available on gotdotnet at
http://www.gotdotnet.com/team/cplusplus/. This a command-line build utility
that can build .vcproj files directly with no conversion. You can invoke
vcbuild from within a larger makefile if you desire.

-cd
 
Hi Carl

Does this VCBuild come with dotnet? Will the tool allow me to set env. variables and use then im my build just like nmake.

Than
theSentinel
 
theSentinel said:
Hi Carl,

Does this VCBuild come with dotnet? Will the tool allow me to set
env. variables and use then im my build just like nmake.

No - you have to download it from gotdotnet. Yes, I believe so.

-cd
 
Hi Carl

i've tried vcbuild and it works exactly the same as devenv. I can set the LIB, INCLUDE and PATH env. var and use them with the tool. Everything work fine, Now I want to tell/direct the tool as to where to put the output and my intermediate files

See, I don't want to build if my source has not changed. So, I want to store it somewhere everytime I build. not under release/debug on the current directory. Is there a way of setting the OUTDIR and INTDIR that the tool will use instead of what is inside the csproj file

Regard
Joe
 
theSentinel said:
Hi Carl,

i've tried vcbuild and it works exactly the same as devenv. I can set
the LIB, INCLUDE and PATH env. var and use them with the tool.
Everything work fine, Now I want to tell/direct the tool as to where
to put the output and my intermediate files.

See, I don't want to build if my source has not changed. So, I want
to store it somewhere everytime I build. not under release/debug on
the current directory. Is there a way of setting the OUTDIR and
INTDIR that the tool will use instead of what is inside the csproj
file?

That I don't know. Have you tried simply defining OUTDIR and INTDIR in the
environment? If that doesn't do it, you're probably out of luck.

-cd
 
Back
Top