Command line for VC 6?

I'm used to working with VS2005 and 2008 - with msbuild, etc., but I have inherited a set of projects that currently remain in vc6.0. I do not like to open every project in the studio and the developer building. I prefer to build a command line form (I automate the build). Is it possible?

I tried the nmake utility, but I still need to open the projects and save / export the make file. This is tedious if the project changes - every time I have to save a make file. nmake seems to work, but I had a problem when I changed the location of the project in my directory tree (I checked svn for a new clean directory to try building). It seemed to have hardcoded paths in it, but I would need to check this out - it could be another problem.

Any alternatives out there?

In the end, I will transfer them to 2008, but so far this is not an option.

+3
source share
6 answers

- Microsoft . , , , / .

Visual ++ makefile (MAKEFILE filename.mak) NMAKE.

-

msdev _ [/MAKE "_ - ConfigName | ALL" ] [/REBUILD/CLEAN/NORECURSE/OUT LogFile/USEENV]

FileName - (.dsp) (.dsw).

+5

. , , . , , . , .

:

:::: CompileSolution:::::::::

X:\BuildTools\bin\BuildVbProj.bat % COMPONENTNAME%% SOLUTIONDIR% % PROJFILE%% BUILDOUTPUTFILE% % PREBUILDFILE% if% ERRORLEVEL% NEQ 0 goto BuildErrors

goto Cleanup

EDIT: BuildVbProj.bat VB6.exe Program Files\MS Visual Studio\VB98 \. "VB6.exe/?" "VB6.exe -?" . .

VC98 exe VC.

0

, . vc , , c8.exe wow, , vc\bin exes, . . , "create makefile". , make voila. , , nmake. , .

0

Microsoft Visual Studio. VC6 msdev (do msdev/? ).

At some point (probably VS.NET/VS 2002) for some reason, they started calling the "devenv" command line builder driver. It has a slightly different syntax, but the parameters are the same or similar for driving the assembly.

0
source

Another option that is less time consuming is


Pulldown Menu (BUILD)
Select (BATCHBUILD) Button
(REBUILDALL)

-2
source

Source: https://habr.com/ru/post/1697593/


All Articles