Closed nrother closed 10 years ago
Until the fix is included in the NuGet package: You can always use luanet
:
luanet.load_assembly("System.Windows.Forms")
Form = luanet.import_type("System.Windows.Forms.Form")
form = Form()
form.Text = "This is a cool dialog"
form:ShowDialog()
form = nil
Not so cool as the import()
way, but it works!
This code should work, but won't:
DynamicLua does not call the method LoadCLRPackage() of NLua, therefore acessing or even importing the CLR classes does not work.
This is a workarround/hack to fix it:
This is a pretty nasty bug, since this is one of the really cool features of NLua :frowning: