外部工具 (esriRegasm.exe) 在构建过程中失败。它在我的 VS 项目中的哪个位置执行?

发布于 2024-09-26 04:15:27 字数 333 浏览 2 评论 0原文

我正在尝试编译来自 ESRI 的示例,但收到此错误

错误 1:命令“esriRegasm.exe CommandInheritingBaseCommand.dll”/p:Desktop /s” 退出,代码为 -1。

因此,必须有一个命令来调用 < code>esriRegasm.exe 在项目中的某处,但我找不到它,我右键单击项目 → Properties 并查看 Build>Build Events 选项卡,但在那里什么也没有找到。

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

蛮可爱 2024-10-03 04:15:27

如果无法通过 Visual Studio 找到它,请尝试在文本编辑器中编辑项目文件,并查看它存储对该可执行文件的引用的位置。

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.

梦醒灬来后我 2024-10-03 04:15:27

我找不到答案,但我通过在 Windows 7 中以“管理员”身份而不是用户身份进行开发来解决 esriRegasm 错误。

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.

ヅ她的身影、若隐若现 2024-10-03 04:15:27

对于 VB,如果您在 xml 编辑器中打开 vbproj 文件,您将在末尾找到这些行(我假设 C# 类似。)您可以从文件中删除它们并重新打开您的项目

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

与他有关 2024-10-03 04:15:27

这是一个 MSBuild 任务。我遇到了同样的错误,但是编译我自己的项目而不是示例项目。事实证明,esriRegAsm.exe 失败了,因为它找不到我的程序集的依赖项之一(该项目引用的我的另一个程序集)。因此,此错误非常普遍,可能意味着 esriRegAsm.exe 由于多种原因而失败。通过在命令行上自行运行 esriRegAsm.exe 来排除故障。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文