Xamarin Studio,GTK 2.0 C#应用程序,运行时错误,无法加载libglib-2.0-0.dll [英] Xamarin Studio, GTK 2.0 C# application, runtime error, can't load libglib-2.0-0.dll

查看:350
本文介绍了Xamarin Studio,GTK 2.0 C#应用程序,运行时错误,无法加载libglib-2.0-0.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows 7上安装了全新的Xamarin Studio 5.10,并创建了标准的GTK 2.0 C#项目(通过新建项目">.Net">"GTK#2.0项目").

I've installed fresh Xamarin Studio 5.10 on Windows 7 and created standard GTK 2.0 C# project (via New Project > .Net > GTK#2.0 Project).

下面的代码:

using System;
using Gtk;

namespace _test
{
    class MainClass
    {
        public static void Main (string[] args)
        {
            Application.Init ();
            MainWindow win = new MainWindow ();
            win.Show ();
            Application.Run ();
        }
    }
}

构建还可以,但是运行时错误增加了(我已将错误从我的母语翻译成英语):

Build is ok, but runtime error raises (I've translated error from my native language into english):

无法加载DLL"libglib-2.0-0.dll":找不到过程(异常 从HRESULT:0x8007007F)

Can't load DLL "libglib-2.0-0.dll": Procedure was not found (Exception from HRESULT: 0x8007007F)

Mono和gtk#似乎可以通过官方Mono网站上的exe很好地安装.测试控制台应用程序可以正常运行.

Mono and gtk# seems to be installed ok via exes from official mono site. Test console app works ok.

任何人都可以帮助:)吗?

May anybody help :) ?

推荐答案

您需要重新启动. 我只是遇到了同样的问题,那就是解决方案.

You need to reboot. I just had the same problem and that was the solution.

这篇关于Xamarin Studio,GTK 2.0 C#应用程序,运行时错误,无法加载libglib-2.0-0.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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