[replying to self] I've solved this the third way: with an <exec> task starting cmd.exe and <buildArgs> of: call "%VS90COMNTOOLS%vsvars32.bat" && C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe [msbuild options]
This isn't ideal, but it works. But I don't see any log info at all. I've added the following to the msbuild CLI options: /l:ThoughtWorks.CruiseControl.MsBuild.XmlLogger,"C:\path\to\ThoughtWorks.CruiseControl.MsBuild.dll";C:\Path\to\ArtifactDir\msbuild-results.xml which is more-or-less copied from what I found the <msbuild> task did. This still doesn't work, however. I get a page saying: |Log does not contain any XML output from MSBuild. | |Please make sure that MSBuild is executed using the XmlLogger (use the argument: /logger:Kobush.Build.Logging.XmlLogger,Kobush.Build.dll). This is not very helpful. Particularly since I don't even have Kobush.Build.dll Any assistance appreciated Cheers, Carl. On Thu, Jul 9, 2009 at 1:46 PM, Carl Cerecke<[email protected]> wrote: > 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. > -- 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.
