Mono 返回错误:未找到 mono mscorlib.dll
我用 monodevelop 2.4 开发了一个 mono gtk 2.10 应用程序。
但是,当我尝试在我的开发机器(大约 5 个虚拟机)之外启动 .exe 时,我得到:
未找到 mono mscorlib.dll
另外,如果我将 mscorlib.dll 添加到应用程序目录,我会收到相同的错误。
我哪里错了?
I've developed a mono gtk 2.10 application with monodevelop 2.4.
But, when i try to launch the .exe outside my develop machine (about 5 virtual machine) i get ever:
mono mscorlib.dll was not found
Also if i add mscorlib.dll to the app directory, i get the same error.
Where i'm wrong ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能是您的程序是针对其他计算机上未安装的运行时版本构建的。
例如,如果您针对 1.1 或 4.0 进行编译,而您的其他系统只有 2.0 或 3.5 等。
鉴于您遇到此类问题,您可能需要查看 mkbundle。如果您不需要将程序分发给第三方,您可能需要使用
--static
选项。It might be that your program was built against a version of the runtime that isn't installed on the other machines.
For instance, If you compiled against 1.1 or 4.0 and your other systems only have 2.0 or 3.5 etc.
Given that you are having these kinds of problems, you might want to look at mkbundle. If you do not need to distribute your program to third parties you might want to use the
--static
option.您可以尝试以下操作:
它将使 mono 在当前目录中查找其文件。但如果您的环境设置不正确,您可能会遇到其他问题(例如查找 GAC、machine.config...)。请参阅 mono-project.com wiki 了解更多信息。
You can try the following:
It will make mono look in the current directory to find its files. But if your environment is not set correctly you'll likely have other issues (e.g. finding the GAC, machine.config...). Look at the mono-project.com wiki for more information.