If you get the following error message when trying to execute the build on a project that TreeSurgeon has generated:
BUILD FAILED
c:\Users\myUser\Documents\TreeSurgeon\TreeSurgeonTest\TreeSurgeonTest.build(22,4):
External Program Failed: regsvr32 (return code was 5)
I got the error using Vista with UAC turned on.
This is since the TreeSurgeon build script tries to run a COM registration by invoking regsvr32:
<exec program="regsvr32" workingdir="tools\NCover" commandline="/s CoverLib.dll" />
I had to do the registration manually by running the command
regsvr32 {path_to_treesurgeon_outputdir}\tools\NCover\CoverLib.dll
(Note that you need to run the cmd prompt as Administrator, otherwise you get error code 0x80070005.)
The last thing to do is to comment away the <exec /> line from the build script where the regsvr32 is being executed. Then the build script works.
0 kommentarer:
Post a Comment