Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在关注本指南:http ://www.mono-project.com/GtkSharpBeginnersGuide它告诉我创建一个 glade 文件(在我的情况下为 main.glade),但是当我将它插入到我在 Visual Studio 的项目中时,我总是得到这个例外:
无法获取资源文件'main.glade' 参数名称:resource_name
我试图将文件标记为嵌入式资源,但没有帮助。如何配置文件以编译为嵌入式资源,以便林间空地可以访问它?指南没有提到这部分
这是不可能的,因为 Visual Studio 的快速版本不支持加载项,而 Gtk 需要 VS 加载项才能在 VS 中工作。您可以尝试使用 Monodevelop 或命令行编译器。
从链接:
Windows:如果您使用的是 Windows,请从该下载页面获取集成安装程序的副本。您可能还想获取 Visual Studio 的 Gtk# 集成包的副本,它允许您将 GTK# 与 Microsoft 的 Visual Studio 一起使用,而无需安装 Mono 的其余部分。