RE: [nant-dev] Custom tasks from XML / using dynamic assemblies

2006-03-16 Thread Gert Driesen
Hi Christian, I've fixed the dynamic assembly issue locally, and commit it to cvs in a few minutes. I'll let you know when I've finished uploading a new nightly build for you to test. Gert > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chris

Re: [nant-dev] Custom tasks from XML / using dynamic assemblies

2006-03-16 Thread Christian Birkl
Oh i think i forgot to mention you'll propably need the latest nightly-build since there's a new public TaskBuilder() constructor overload which isn't (?).   Also forgot three other changes, remove the variable "dynAssemblyFileName" and change your calls of DefineDynamicModule and DefineDynamicAsse

Re: [nant-dev] Custom tasks from XML / using dynamic assemblies

2006-03-16 Thread Christian Birkl
Hi Michael,   I think got it working, just apply the following changes to "CustomTaskBuilder.cs":   1) Change the method CreateTypeForTask so that it returns the newly created Type 2) Remove the assemblyBuilder.Save() and TypeFactory.ScanAssembly() call 3) Add instead:   Type dynType = CreateTypeF

Re: [nant-dev] Custom tasks from XML / using dynamic assemblies

2006-03-16 Thread Michael O'Brien
Hi Christian, hooking ProcessExit doesn't seem to work, I think because this occurs before the AppDomains are unloaded? Not sure about this but Chris Brumme has a post at http://blogs.msdn.com/cbrumme/archive/2003/08/20/51504.aspx which seems to imply this, if I've read it correctly. In any case,