Вопрос

I'm trying to automate builds of Visual Studio 6 projects (written in C). Everything works fine when I build them from the Visual Studio Development Environment, but I need some help to be able to compile a project (.dsp) or the whole workspace (.dsw) if possible from the command line with command line tools, as this should be done with a batch job for multiple projects at once.

A tutorial or some instructions on how to do this from scratch would be nice...

Это было полезно?

Решение

Your command line needs to look something like this:

msdev myworkspace.dsw /MAKE "myproject - Win32 Release" /OUT buildlog.txt

You'll also need to put the development enironment on your PATH - if it isn't already there, you need to run c:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat or similar.

Другие советы

 msdev FileName [/MAKE "ProjectName – ConfigName | ALL"] [/REBUILD /CLEAN /NORECURSE /OUT LogFile /USEENV]

where FileName is the name of your project (.dsp) or workspace (.dsw) file.

For example, the following syntax deletes all intermediate files and then builds a project called MyProject:

msdev MyProject.dsp /MAKE "MyProject – Win32 Debug" /REBUILD

Taken from MSDN

Keywords for Bing:

visual studio 6 project command line

and open the first result!

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top