You will all have to forgive the scrappy nature of the attachments -
and I'm nit sure if they will be formatted properly either.
Basically I am checking up Delphi 2009 code from a Surround SCM and
then building using MSBUILD. The msbuild project bit looks like
this ...
<msbuild>
<executable>E:\WINDOWS\Microsoft.NET\Framework
\v2.0.50727\MSBuild.exe</executable>
<workingDirectory>G:\Documents\Mark\CCBuildDir\SSCMClone\D2009</
workingDirectory>
<projectFile>"Control/Package.dproj"</projectFile>
<buildArgs>/p:DCC_MapFile=3,DCC_Hint=True,DCC_Warning=True</
buildArgs>
<targets>Build</targets>
<timeout>15</timeout>
</msbuild>
When I run this via CCNet, I get the following output ...
Project "G:\Documents\Mark\CCBuildDir\SSCMClone
\D2009\Package.dproj" (Build target(s)):
Target "CoreCompile":
E:\Program Files\CodeGear\RAD Studio\6.0\bin\dcc32.exe -$J+ -$YD --no-
config -B -Q -
AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;Sys=SysUtils
-
DDFS_NO_DSGNINTF;DFS_COMPILER_5_UP;DFS_DESIGNERSELECTIONS;DFS_IPROPERTY;DELPHI7;DELPHI2007;DELPHI2009
-I"E:\Program Files\CodeGear\RAD Studio\6.0\Lib\Debug" -O"E:\Program
Files\CodeGear\RAD Studio\6.0\Lib\Debug" -R"E:\Program Files\CodeGear
\RAD Studio\6.0\Lib\Debug" -U"E:\Program Files\CodeGear\RAD Studio
\6.0\Lib\Debug" -K00400000 --description:"Component Package" -GD -W-
SYMBOL_PLATFORM -W-UNIT_PLATFORM ORCompPackageD2009.dpk
CodeGear Delphi for Win32 compiler version 20.0
Copyright (c) 1983,2008 CodeGear
E:\Program Files\CodeGear\RAD Studio\6.0\Bin\CodeGear.Delphi.Targets
(130,3): error : Package.dpk(38) Fatal: E2202 Required package 'vcl'
not found
Done building target "CoreCompile" -- FAILED.
Done building project "Package.dproj" -- FAILED.
It looks like nothing that is in the <BuildArgs/> section actually
gets passed into the MSBuild. If I can get this working, I could pass
in the proper include directories which would enable this code to
compile. However, I go to the checked out directory and call "MSBuild
Control/Package.dproj", then the package compiles, as the directories
are picked up from the environment.
Although I have removed and reinstalled CCNet and this appears to have
solved my problem, so I had probably messed something up somewhere!!!
Thanks for everyone's patience and help
Mark H