Timothy Burda wrote:

Can somebody explain to me why this target doesn’t work:

<target name="test.changehomedir" >

<script language="C#">

<references>

<include name="System.DirectoryServices.dll" asis="true"/>

</references>


<snip>

remove the asis attribute so that NAnt will try to find the reference in the current frameworks directory and it should work fine -- with rc2 anyways.

System.DirectoryServices.DirectoryEntry folderRoot = new System.DirectoryServices.DirectoryEntry(pd["config.parent"]);

you also didn't declare a pd variable so that will fail too.


Ian


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to