473,327 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Automating VS2005 builds

I am working on a largish project (about 40 modules). I have created a
solution that builds all 40 modules/projects. However, I want to be able
to automate the build process - and kick it off without having to start
the IDE etc.

I fiddled around with NAnt for a while but it seems VC8 dosent work so
well with NAnt (from what I read + my own experience). Bottom line, I
don't have to much time to waste trying to fiddle with NAnt et all, I
have resorted to writing a batchfile to just get things done quickly.

Does anyone know if VS2005 can be automated like this?

If yes - can you do the ff:

1). log errors/warnings/build progress etc?
2). Get an errorlevel/return code so one can act appropriately wjhen the
build breaks ?

Anyone has some experience/tips doing this?
Mar 21 '07 #1
3 2882
In article <Cp******************************@bt.com>,
2b|!2b==? <ro**@your.box.comwrote:
>1). log errors/warnings/build progress etc?
This works great from a batch script:

"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" tools.sln /build "Debug" /out d:\tools_core_debug_output.txt
>2). Get an errorlevel/return code so one can act appropriately wjhen the
build breaks ?
Parse the output text file yourself. Not all that hard.

Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Mar 21 '07 #2


Nathan Mates wrote:
In article <Cp******************************@bt.com>,
2b|!2b==? <ro**@your.box.comwrote:
>>1). log errors/warnings/build progress etc?


This works great from a batch script:

"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" tools.sln /build "Debug" /out d:\tools_core_debug_output.txt

>>2). Get an errorlevel/return code so one can act appropriately wjhen the
build breaks ?


Parse the output text file yourself. Not all that hard.

Nathan Mates
Thanks - I'm not so sure about parsing the log file though - surely it
(devenv)MUST return some number after running ?
Mar 21 '07 #3
In article <9e******************************@bt.com>,
2b|!2b==? <ro**@your.box.comwrote:
>"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" tools.sln /build "Debug" /out d:\tools_core_debug_output.txt
>>>2). Get an errorlevel/return code so one can act appropriately wjhen the
build breaks ?
>Thanks - I'm not so sure about parsing the log file though - surely it
(devenv)MUST return some number after running ?
Why not test this yourself? Make a 'hello, world' project, run a
cmdline build. Add a syntax error. Run again. Note the return
value. That would likely be faster than posting to usenet.

Nathan Mates
--
<*Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Mar 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: yoda | last post by:
Hi Guys, I've been used to deploying code to the production server by checking out of subversion and manually sorting out any kinks. (yes, I know, it sounds primitive) I realize I'm losing so...
7
by: Inga2005 | last post by:
I have developed an web site in VS2005 but I can't build a release version since the option is missing in the configuration manager. The second thing is that there isn't a bin folder placed in my...
11
by: CMM | last post by:
I am so disappointed in VS2005. The "little things" wrong with it are just mind-boggling. Boy, I'll be so mad if I have to wait a year for the ".1" release that fixes all the bugs in this obvious...
2
by: Tammam | last post by:
Hello All, I had a solution composed of managed/unmanaged C++ , C# projects. It builds with no problem in VS2003 but after converting the solution to VS2005 i get many linking errors such as...
3
by: zhouchengly | last post by:
I test a stl sort function in vs2005 and find the efficiency of debug to release version is about 1000:1, it suprise me and I'm curious what cause it.
4
by: Bit Byte | last post by:
I'm having problem compiling one of my projects with VS2005. The problems arise with VS2005 (apparent?) inability to compile log4cpp. Has anyone succesfully compiled log4cpp using VS2005? Here...
3
by: Chris288 | last post by:
Hi, I have a problem where our app when compiled in VS2005 runs about 50% the speed it attains in VS2003. This is an unmanaged C++ app. I have tried most combinations of the optimization and...
3
by: Rotsey | last post by:
I do not have a configuration selector on my vs screen Is this due to the fact that I selcted VB as language when I installed vs??? How do I bring up the configuration selector I cannot see...
7
by: =?Utf-8?B?QUEyZTcyRQ==?= | last post by:
Is there any way of getting VS2005 to 'type' the content of a file into the currently open CS file? I am trying to capture the VS2005 screen: I'd like to be able to record the code (already...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.