vincent,
tho i don't use asp.net at this juncture, it does sound like a good idea.
<brainstorm>
use xslt task to create a filelist of those files to copy
use foreach task to traverse the file list
use copy task for each file
pass 1: try it out as a target using nant instead of a compiled task
pass 2: encapsulate it in a task
</brainstorm>
/jean
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Vincent Labatut
> Sent: Wednesday, September 10, 2003 11:35
> To: [EMAIL PROTECTED]
> Subject:
>
>
> hi,
>
> i'm using the solution task and it works great.
>
> now, i would like to extract from the build tree what needs
> to be deployed.
>
> as ASP.Net puts forward the "xcopy" deployment, i'd like to
> get *ONLY* the files that are required by my web site.
>
> the techniques I usually see seem a bit hazardeous to me, as
> they are based on file extensions (ie copy only aspx, asmx,
> ashx, ascx, config, jpg, gif etc...). The problem with this
> approach is that you will most certainly forget an extension
> someday (big sites can involve many file types).
>
> Another way would be to delete all the source files in the
> tree. Again, this is not 100% satisfactory because of
> unwanted files that could still be there. It often happens
> that some files do not appear in your project but are well in
> your directories (and possibly sourcesafe, they are just not
> included in the project).
>
> The only guy I would trust would be the visual studio project
> file. It is XML and for each single file inside the project,
> it describes whether it should compiled, embbeded as a
> resource, not used, or... deployed. What information is more
> accurate and easier to use ?
>
> I plan to develop a task that would use a visual studio
> project file in order to copy *only* the files required for
> execution. That means those marked as "Content", and
> everything under the project output directory. I can post it
> to the nant contrib when I'm done.
>
> Good idea or not ?
>
> NuYz5▖5~zi۳ l˲q z l X)ߣ ۬
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users