joanil

ESRIRegAsm.exe sometimes generates empty ecfg files

Discussion created by joanil on Oct 7, 2010
Latest reply on Oct 19, 2010 by lftgly
ESRIRegAsm.exe sometimes generates empty ecfg files. This happens when we are building one of our VS 2008 solution files on our build computer. It happens on different projects, and it happens on a mix of C++ and C# projects. When running ESRIRegAsm.exe from the command line it works fine on the same dll that failed when building the solution file. Attaching an empty ecfg file.

ESRIRegAsm is called in the Post-Build Event for C++ projects and in Target AfterBuild for C# projects

Post-Build Event:
"%CommonProgramFiles%\ArcGIS\bin\ESRIRegAsm.exe" "$(TargetPath)"  /v:10.0 /p:Desktop /s

AfterBuild Target:
<Target Name="AfterBuild">
    <Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" Command="esriRegasm.exe &quot;$(TargetPath)&quot; /v:10.0 /p:Desktop /s" />
</Target>

System information:
ArcGIS Desktop 10.0.2414
Windows Server 2008 R2 Standard
Processor: Intel Xeon, L5430, 2.66GHz, 2 processors (8 cores)
64-bit Operating System

Outcomes