I just installed Xamarin Monodevelop on Mac OSX, I created a GTK# project where I have a very basic Window that I haven't even touched. This is the error it gives me on Build();
Error CS0103: The name 'Build' does not exist in the current context
using System;
using Gtk;
public partial class MainWindow: Gtk.Window
{
public MainWindow () : base (Gtk.WindowType.Toplevel)
{
Build ();
}
protected void OnDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
}
The Build
method is created by the Stetic UI builder, akin to the InitializeComponents
of the Visual Studio UI builder.
There seems to be a bug in Xamarin Studio (I'm using 5.5.4.15) where the Build
method is not generated unless you add a widget to the Window. Try adding a VBox
or another container and then rebuilding.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With