There's a 'bug' in vcbuild.exe that causes it not to 'see' changes in
.h files if the environment is not 'right'.

So I have an <msbuild> task, that at one point, builds a c++ .vcproj
via vcbuild.exe, but vcbuild.exe thinks nothing needs doing if only a
.h file is changed. More info here:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=217625

The 'fix' is to run vsvars32.bat before running msbuild. This works in
cmd.exe, but how do I do this from within cc.net?

I can't have a separate <exec> block before the msbuild, as the
environment doesn't carry over.
I tried adding it as a prebuild event to the .vcproj, but this didn't
seem to work.
I could write a .bat that calls vsvars32.bat and then runs msbuild and
use <exec> task instead of <msbuild>. Is this the best way?

Cheers,
Carl.
-- 
Carl Cerecke
GeoBase Senior Software Engineer – Telogis Research
www.telogis.com  www.telogis.co.nz
+1 949 625-4115 ext. 208 (USA)   +64 3 339 2825 ext. 208 (NZ)

Leading Global Platform for Location Based Services
OnTrack and GeoBase enable over 350,000 vehicles and mobile devices worldwide.
--
This e-mail, and any attachments, is intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information.  It is the property of Telogis.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any dissemination, distribution or copying of this e-mail, any
attachments thereto, and use of the information contained, is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender and permanently delete the original and any copy there of.

Reply via email to