Problem with path on buildagent for sln2008

I have had teamcity installed and running fine on my XP pc as a trial with visual studio 2008. But I've now tried to migrate to one of our build servers and am having a LOT of hassle with paths to the tools.
I'm trying to use the sln2008 build runner but get these errors:

Project error PRJ0003: Error spawning 'cl.exe'.
Project error PRJ0003: Error spawning 'cl.exe'.


So then I tried the msbuild runner against the .sln.cache, and it's closer to working. (it can find the buld tools at least, but is having trouble with include files for some of the projects)
I have restarted the machine after discovering the service environment variables aren't updated until a restart

This machine DID have VS 2003 installed, and that seemed to be what was getting used by the 2008 runner, but I've uninstalled that.

I've tried adding a prebuild step to the first project to run set > \env.txt
but this is only run on the msbuild project, not with the sln2008 runner.

Has anyone got any suggestions? I'd love to get this working - it seemed so easy the first time!


Thanks in advance,

Lance

3 comments
Comment actions Permalink

Could you please check build agent service to run under some administrator account. LOCAL SYSTEM account may produce issues like this.
Thanks!

0
Comment actions Permalink

Thanks for the suggestion.
It was already set up to run as the use that I login as, and can build as. I did try adding to local admins (which it should have implicitly as it's a member of anothergroup which implies local admin).
As I said, with the msbuild runner, it can at least find the tools, sln2008 can't even manage that.

Any more suggestions?

[
[:14:48]: Checking for changes[
[:14:49]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp[
[:14:49]: Checkout directory: C:\xxxxxtc[
[:14:49]: Getting project sources...[
[:14:49]: Loading changed files from server...[
[:14:50]: Starting build process in C:\xxxxxtc[
[:15:04]: Project "xxxxx.sln" (Rebuild target(s)): (14s)[
[:15:04]: [Project "xxxxx.sln" (Rebuild target(s)):] Building solution configuration "Release|Mixed Platforms".[
[:15:05]: [Project "xxxxx.sln" (Rebuild target(s)):] C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\vc\vcpackages\vcbuild.exe /rebuild C:\xxxxxtc\Development\OTHERPROJ\OTHERPROJ.vcproj "Release|Win32" [
[:15:15]: [Project "xxxxx.sln" (Rebuild target(s)):] Project error PRJ0019: A tool returned an error code from "Buildin Message Table c:\xxxxxtc\Development\Flog\Src\Messages.mc"[
[:15:15]: [Project "xxxxx.sln" (Rebuild target(s)):] C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\vc\vcpackages\vcbuild.exe /rebuild C:\xxxxxtc\Development\Applications\xxxxxMyProject\DataItems\xxxxxMyProject.vcproj "Release|Win32" [
[:15:15]: [Project "xxxxx.sln" (Rebuild target(s)):] Project error PRJ0003: Error spawning 'cl.exe'.[
[:15:
[]: [Project "xxxxx.sln" (Rebuild target(s)):] C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\vc\vcpackages\vcbuild.exe /rebuild C:\xxxxxtc\Development\Applications\xxxxxTradeServer\Calculators\xxxxxMyProject.vcproj "Release|Win32" [
[:15:
[]: [Project "xxxxx.sln" (Rebuild target(s)):] Project error PRJ0003: Error spawning 'cl.exe'.[
[:15:
[]: [Project "xxxxx.sln" (Rebuild target(s)):] C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\vc\vcpackages\vcbuild.exe /rebuild "C:\xxxxxtc\Development\Support Files\UnitTest++\UnitTest++.vsnet2003.vcproj" "Release|Win32" [
[:15:17]: [Project "xxxxx.sln" (Rebuild target(s)):] Project error PRJ0003: Error spawning 'cl.exe'.[ [
[:15:19]: [Project "xxxxx.sln" (Rebuild target(s)):] Project error PRJ0003: Error spawning 'cl.exe'.[
[:15:20]: sln2008 output:
  Project : error PRJ0003: Error spawning 'cl.exe'.

"C:\xxxxxtc\Development\xxxxx.sln.teamcity.patch.tcprojx" (Build_TeamCity_generated_64b4cf981bd0435d9a80eee671ed78af target) (1) ->
"C:\xxxxxtc\Development\xxxxx.sln" (Rebuild target) (2) ->
(xxxxxMyProject:Rebuild target) ->
  Project : error PRJ0003: Error spawning 'cl.exe'.

0
Comment actions Permalink

If I change to sln2005 I get Solution file error MSB5014: File format version is not recognized.  MSBuild can only read solution files between versions 7.0 and 9.0, inclusive

0

Please sign in to leave a comment.