开发者

External tool (esriRegasm.exe) fails during build. Where in my VS project is it executed?

I am trying to compile a sample from ESRI and I get this error

Error 1: The command 开发者_运维百科"esriRegasm.exe CommandInheritingBaseCommand.dll" /p:Desktop /s" exited with code -1.

So, there must be a command to invoke esriRegasm.exe somewhere in the project, but I cannot find it. I right-clicked on the project → Properties and looked in Build and Build Events tabs, but found nothing there. Where else could it be?


If you can't find it through Visual Studio, try editing the project file in a text editor and see where it is storing a reference to that executable.


I couldn't find the answer, but I got around the esriRegasm error by developing as "Administrator" in Windows 7 and not as a user.


for VB, if you open the vbproj file in an xml editor you will find these lines at the end (I assume C# is similar.) You could remove them from the file and reopen your project


It is an MSBuild task. I got the same error, but compiling my own project rather than the sample project. It turned out that esriRegAsm.exe failed because it could not find one of my assembly's dependencies (a different assembly of mine that is referenced by this project). So, this error is pretty generic and could mean that esriRegAsm.exe failed for a number of reasons. Troubleshoot by running esriRegAsm.exe yourself on the command line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜