I found a great way to do this without
using <loadtasks>. Here is a snippet from my nant.exe.config
file in the nant bin folder. <!-- nant config
settings --> <nant>
<frameworks>
<platform name="win32" default="auto">
<task-assemblies>
<!-- include NAnt task assemblies -->
<include name="*Tasks.dll" />
<!-- include NAnt test assemblies -->
<include name="*Tests.dll" />
<!-- include framework-neutral assemblies -->
<include name="tasks/*.dll" /> <!-- I added these!!! --> <!--
include nant_contrib task assemblies --> <include
name="c:/nant_contrib/bin/*.dll" /> <!--
include my custom nant task assemblies --> <include
name="c:/mynant/bin/*.dll" /> <!--
exclude Microsoft.NET specific task assembly -->
<exclude name="NAnt.MSNetTasks.dll" />
<!-- exclude Microsoft.NET specific test assembly -->
<exclude name="NAnt.MSNet.Tests.dll" />
</task-assemblies> I saw this on a Blog somewhere. I’m
sorry I don’t remember whose it was to give proper credit, but I think
this is a very elegant way to handle nant contrib. and custom tasks without
destroying the encapsulation of the nant build. It may not be as
efficient, code wise, but it’s less work for me (the lazy type) because I
don’t have to use <loadtasks>. Happy NAnting! Matt Hulse From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rick Casey Here's what I did... Just had to define the path to
nantcontrib. I really try to avoid copying the
'bin' folders these days. God know what could happen. <loadtasks
assembly="${nantcontrib.dir}\bin\NAnt.Contrib.Tasks.dll" />
<vssget
user="${project.vss.readonly.username}"
password="${project.vss.readonly.password}"
localpath="${path::combine(current.build.dir, 'Applications')}"
dbpath="${project.vss.database}"
path="$/Applications"
recursive="true"
writable="true"
replace="true"
removedeleted="true" /> Rick. |
- RE: [Nant-users] NantContrib ... Matt Hulse
- Re: [Nant-users] NantCon... Gert Driesen
- Re: [Nant-users] Nan... Gary Feldman
- Re: [Nant-users]... Thibaut Barrère
- Re: [Nant-users]... Scott Hernandez
- RE: [Nant-users] NantCon... Castro, Edwin Gabriel (Firing Systems Engr.)
- Re: [Nant-users] Nan... Scott Hernandez
- RE: [Nant-users] NantCon... Holmes, Jim (Space Technology)
- Re: [Nant-users] Nan... Thibaut Barrère
- RE: [Nant-users] NantCon... Castro, Edwin Gabriel (Firing Systems Engr.)
- Re: [Nant-users] Nan... Scott Hernandez