Besides the obvious NAnt bug, your package names are incorrect. You need to use the same names as you'd normally use with pkg-config. So "gtk-sharp-1.0" or "gtk-sharp-2.0" (otoh).
Jeroen > I know this list is specifically for gtk-sharp, but since I require a > very mono-specific part of it, I thought to ask here first. > > When using <pkg-references> and specifying packages, nant always dies > with the following: > > INTERNAL ERROR > > System.InvalidCastException: Cannot cast from source type to destination > type. > in <0x000b5> AttributeConfigurator:CreateChildBuildElement > (System.Reflection.PropertyInfo,System.Xml.XmlNode,NAnt.Core.PropertyDictionary,NAnt.Core.FrameworkInfo) > in <0x00309> AttributeConfigurator:InitializeChildElement > (System.Reflection.PropertyInfo) > in <0x000c2> AttributeConfigurator:Initialize () > in <0x0004f> NAnt.Core.Element:InitializeXml > (System.Xml.XmlNode,NAnt.Core.PropertyDictionary,NAnt.Core.FrameworkInfo) > in <0x000e5> NAnt.Core.Element:Initialize > (System.Xml.XmlNode,NAnt.Core.PropertyDictionary,NAnt.Core.FrameworkInfo) > in <0x00079> NAnt.Core.Element:Initialize (System.Xml.XmlNode) > in <0x00076> NAnt.Core.Project:CreateTask > (System.Xml.XmlNode,NAnt.Core.Target) > in <0x0020c> NAnt.Core.Target:Execute () > in <0x000cd> NAnt.Core.Project:Execute (string,bool) > in <0x00395> NAnt.Core.Project:Execute () > in <0x0017c> NAnt.Core.Project:Run () > > These are the references: > > <pkg-references> > <package name="gnome-sharp" /> > <package name="gtk-sharp" /> > <package name="glade-sharp" /> > </pkg-references> > > Any suggestions are appreciated. I'll be sending this over to the NAnt > list too, but from the looks of things, there are very few mono users... > which is why I decided here was a good place. > -- > Kevin Francis > http://denial.loose-screws.com/ > > _______________________________________________ > Gtk-sharp-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
