Hi Jonathan & Rory
I can understand the confusion... I was a little confused by filesets
myself to start with.
Actually, you possibly want more than three filesets (I don't use the
vbc task, and I'm not sure it will accept more than one, so you may have
to build a single fileset from all the sub-filesets, then reference it
in the vbc task), but here is a mechanism that you should be able to use
(at least for the copy task)....
<fileset id="SystemDlls">
<include name="SomeFile1.dll" />
...
</fileset>
<fileset id="3rdPartyDlls">
<include name="ThirdParty1.dll" />
...
</fileset>
<fileset id="CustomDlls">
<include name="Custom1.dll" />
...
</fileset>
<target name="build">
<vbc target="exe" output="${basename}-vb.exe"
rootnamespace="${basename}">
<imports>
<import namespace="System" />
<import namespace="System.Data" />
</imports>
<sources>
<include name="${basename}.vb" />
</sources>
<resources prefix="${basename}" dynamicprefix="true">
<include name="**/*.resx" />
</resources>
<references>
<fileset refid="SystemDlls" />
<fileset refid="3rdPartyDlls" />
<fileset refid="CustomDlls" />
</references>
</vbc>
</target>
<target name="copy">
<copy todir="Published\latest">
<fileset refid="3rdPartyDlls" />
<fileset refid="CustomDlls" />
</copy>
</copy>
Another option you may also want to consider if the above doesn't work
(and it may not)... Use a "copy" task (which does accept multiple
filesets) to copy all the referenced dll's to a single location. You
should then be able to reference them directly from that location.
Hopefully something of the above will help. Please be aware that I did
not test the above (I don't have Nant immediately available), so I may
have mistyped, but it should give you some idea about how you can
accomplish what you need.
Regards,
Richard
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Evans,
Jonathan (2)
Sent: Tuesday, August 30, 2005 04:39
To: 'Rory Becker'; [email protected]
Subject: RE: [Nant-users] Fileset confusion
It makes sense to me, in fact I think I asked a similar question nearly
a year ago. There was no answer then either. If it isn't a feature I
think it certainly should be. In my case I wanted to use it to provide
dependency information to CSC and NDoc. Is there any answer?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rory Becker
Sent: Wednesday, August 24, 2005 3:55 PM
To: [email protected]
Subject: [Nant-users] Fileset confusion
Can someone tell me (because the documentation is a little hard to
follow)
How can I declare 3 Groups of Files (filesets I believe they are called)
SystemDlls, 3rdPartyDlls and CustomDlls
and reference all 3 from my vbc/references tag
while referencing all except SystemDlls from a Copy task in a deployment
Target
i hope that makes sense
Rory
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
========================================================================
======
Please access the attached hyperlink for an important electronic
communications disclaimer:
http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
========================================================================
======
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users