IKVM.NET:ikvmstub 因 mscorelib 版本问题而卡住

发布于 2024-10-04 07:53:48 字数 428 浏览 0 评论 0原文

我在谷歌上找到了很多关于这个问题的点击,但找不到解决方案。

当我尝试使用 ikvmstub.exe 将 .NET-Interface 转换为 Java 存根时,出现以下错误:

C:\public\ikvm-0.44.0.5\bin\ikvmstub.exe NET_Interface.dll
Error: unable to load assembly 'NET_Interface.dll' as it depends on a higher ver
sion of mscorlib than the one currently loaded

NET_Interface.dll 取决于框架版本 4。此版本安装在我的机器上。

我该如何解决这个问题?

感谢您抽出时间。

I found quite a few Google hits on this issue, but couldn't find a solution.

When I try to convert a .NET-Interface to a Java stub using ikvmstub.exe I get the following error:

C:\public\ikvm-0.44.0.5\bin\ikvmstub.exe NET_Interface.dll
Error: unable to load assembly 'NET_Interface.dll' as it depends on a higher ver
sion of mscorlib than the one currently loaded

NET_Interface.dll depends on the framework version 4. This version is installed on my machine.

How can I resolve this issue?

Thanks for your time.

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

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

发布评论

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

评论(1

疧_╮線 2024-10-11 07:53:48

有两种方法可以解决此问题:

1) 创建一个 ikvmstub.exe.config 文件,强制 ikvmstub.exe 在 .NET 4.0 上运行

2) 显式指定要使用的 mscorlib 版本:
\ikvm\bin\ikvmstub -nostdlib -r:\windows\microsoft.net\framework\v4.0.30319\mscorlib.dll NET_Interface.dll

请注意,当您想使用 ikvmc 进行编译时,您需要执行相同的操作(或者两个选项之一)。

There are two ways to solve this:

1) Create an ikvmstub.exe.config file that forces ikvmstub.exe to run on .NET 4.0

2) Explicitly specify the mscorlib version to use:
\ikvm\bin\ikvmstub -nostdlib -r:\windows\microsoft.net\framework\v4.0.30319\mscorlib.dll NET_Interface.dll

Note that when you want to compile with ikvmc, you'll need to do the same (either one of both options).

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