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 ?
����^�����)�{(��[�8b�A�zE���&z� y�!y�ޞm���)��r����Z�۬z�&j)b�
b��Z�۬z�%��l���q���z�m��?�X���(��~��zw��X�����b��?����ǫ