Bringing this over to the developers list:

I see what you mean about appdomain issues. I'll look into the code as I
expect the implementation might be somewhat easy. I'll also try to write
some good tests!

Would it be feasible to create a second appdomain, load the assembly
into that appdomain, generate the schema, and finally unload the
appdomain? Actually, this could be a cool way for <loadtasks/> to work
since that would allow users to <unloadtasks/> later... Assuming that's
something people would want to do... I don't know...

My appdomain knowledge is almost non-existent (I know appdomains exist
and I sort of know what they're about, but that's pretty much it). If
there are some reasons as to why using a second appdomain would be bad
please let me know. Thanks!

--Edwin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Hernandez
Sent: Wednesday, September 29, 2004 2:47 PM
To: [EMAIL PROTECTED]
Cc: Castro, Edwin Gabriel (Firing Systems Engr.)
Subject: Re: [Nant-users] NantContrib [loadtasks]

No idea when this would get worked on, but the implementation should be 
pretty simple.

Most of the code is written to support creating a schema of arbitrary
Type 
objects. But be careful as loading types means loading assemblies, and 
loading the assembly in the appdomain may cause the task, types and 
functions to be loaded... (which I believe it will). This would have the

side effect of basically doing a <loadtasks/> on the assemblies you want
to 
create a schema for. Another approach may be to require that the
assemblies 
you want to create a schema for are already loaded, and just filter the
rest 
of the loaded assemblies out. Either way, documenting the behavior is 
probably all that is needed. :)

If you want to discuss any more of the internal code I would suggest
moving 
this thread over to the dev list.

If you put together a patch you can post it to the nant-dev list for
review. 
If you include an updated unit test you are even more likely to get
someone 
to test it and commit it.

----- Original Message ----- 
From: "Castro, Edwin Gabriel (Firing Systems Engr.)" <[EMAIL PROTECTED]>
> That's good to know! I would like to have the ability to generate a
task
> schema for individual assemblies. :-) Will this ever be implemented?
And
> if yes, any idea when this might happen? If I look at the
<nantschema/>
> task and try to implement this functionality can I pass implementation
> to someone to review and add to the distribution?
> -----Original Message-----
> From: [EMAIL PROTECTED]
> Actually, the <nantschema/> task will output a schema for any, and
all,
> tasks that are loaded. This includes any custom tasks that are loaded
> with
> <loadtasks/>. It was on the <nantschema/> todo list to allow creating
> schemas for only a given assembly, but that was not been coded yet.
> ----- Original Message ----- 
> From: "Castro, Edwin Gabriel (Firing Systems Engr.)" <[EMAIL PROTECTED]>
>> While this method is not the recommended procedure, it does have the
>> nice property that you can use the <nantschema> task to produce a
> schema
>> that will contain all the NAnt, NAntContrib, and Custom tasks
> specified
>> in the nant.exe.config. This is very useful since there is no other
> way
>> to create a schema for NAntContrib or Custom tasks. 



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give
us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to