无法在没有 IDE 的情况下启动 Gtk# Mono App(无法加载 DLL“intl") [英] Can't start Gtk# Mono App without IDE (Unable to load DLL "intl")

查看:74
本文介绍了无法在没有 IDE 的情况下启动 Gtk# Mono App(无法加载 DLL“intl")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 使用 gtk# 和 mono 用 C# 编写的跨平台桌面应用程序.
  • 目标框架:Mono/.Net 4.5
  • 运行时环境:Microsoft .NET

我可以在 Xamarin Studio 或 Visual Studio 2012 中完美地构建/调试/运行项目.
但是每当我尝试在没有它的情况下启动调试/发布版本(打开 .exe)时,我的应用程序根本无法启动.

I can build / debug / run the project in Xamarin Studio or Visual Studio 2012 perfectly fine.
But whenever I try to start a debug/release build without it (open .exe), my app doesn't start at all.

我试过HomeStream.exe 2>error.log此处所述.

并且 error.log 包含以下信息:

And error.log contained the following information:

Unhandled Exception: System.DllNotFoundException: Unable to load DLL "intl": The    specified module could not be found. (Exception from HRESULT: 0x8007007E).
at Mono.Unix.Catalog.gettext(IntPtr instring)
at Mono.Unix.Catalog.GetString(String s)
at MainWindow.Build() in g:\Users\Eric\Dropbox\Projekte\HomeStream\HomeStream\gtk-gui\MainWindow.cs:Line 35.
at MainWindow..ctor() in g:\Users\Eric\Dropbox\Projekte\HomeStream\HomeStream\MainWindow.cs:Line 22.
at HomeStream.HomeStreamApp..ctor() in g:\Users\Eric\Dropbox\Projekte\HomeStream\HomeStream\HomeStreamApp.cs:Line 67.
at HomeStream.HomeStreamApp.Main(String[] args) in g:\Users\Eric\Dropbox\Projekte\HomeStream\HomeStream\HomeStreamApp.cs:Line 47.

问题

所以我的问题是:intl"是什么类型的 DLL?
如果它如此重要,为什么我的应用程序可以在没有它的情况下在 IDE 中启动?

推荐答案

使用 Gettext 国际化意味着您的软件依赖于 Mono.Unix,后者依赖于一些本机 Unix 库.一些开发人员已经为 Windows 平台提供了其中一些库.例如,您有 MinGW 或 Cygwin 项目来获取它们,或者 GnuWin32 项目在谷歌上的第一次命中.尝试获取适用于 Windows 的 libintl.dll,如果加载失败,则发布新的 stackoverflow 问题.

Using Gettext internationalization means your software has a dependency on Mono.Unix, which depends on some native Unix libraries. Some of those libraries have been made available by some developers for the Windows platform. For example you have the MinGW or Cygwin projects to obtain them, or the GnuWin32 project which is the first hit on Google. Try to obtain a libintl.dll that works on Windows, and if that fails to load, then post a new stackoverflow question.

这篇关于无法在没有 IDE 的情况下启动 Gtk# Mono App(无法加载 DLL“intl")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆