简体   繁体   中英

Can't insert resource file of glade to project in VS C# express

I am following this guide: http://www.mono-project.com/GtkSharpBeginnersGuide it tells me to create a glade file (main.glade in my case), however when I insert it in my project in visual studio I always get this exception:

Cannot get resource file 'main.glade' Parameter name: resource_name

I tried to flag the file as embedded resource, but it didn't help. How I configure file to be compiled as embedded resource so that it can be accessed by glade? The guide doesn't mention this part

This isn't possible because the express versions of Visual Studio don't support add-ins and Gtk requires VS add-ins to work in VS. You can try using Monodevelop or the command line compiler.

From the link:

Windows: If you are using Windows, pick yourself up a copy of the integrated installer from that Downloads page. You might also like to grab a copy of the Gtk# integration package for Visual Studio which will allow you to use GTK# with Microsoft's Visual Studio without installing the rest of Mono.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM