I have the same problem, even if I set an output directory at the solution
level. Is there a way for the referenced projects to be copied to the output
directory? Or should I manually copy it?


> From: Harvey Green 
> Subject: [Nant-users] Solution task not copying referenced dlls to output
dir 
> Date: Wed, 26 Nov 2003 19:54:37 -0800 
> 
> Hi all,
> I'm new to nant but can see I'll be using it a lot in the future...!
> 
> My problem is this...
> 
> - I have a C# VS.NET solution ("MetaViewer") which relies on 
> a library dll called 'Petrolog.Library.dll' which is located 
> in another directory.
> - When I build MetaViewer inside VS.NET, it automatically 
> copies this referenced dll into the debug\bin output directory.
> - But when I build it with nant, this reference dll isn't 
> copied even though it reports 'build succeeded'. Nant creates 
> the new MetaViewer.exe application, which fails to run 
> because the Petrolog.Library.dll file is missing from the 
> output directory.
> 
> Am I doing something wrong here?
> 
> Thanks in advance,
> 
> Harvey Green
> 
> ----------------------------------------------------
> 
> 
> <?xml version="1.0"?>
> <project name="MetaViewer" default="build">
>   <target name="clean" description="Remove all generated files">
>     <delete verbose="true" failonerror="false">
>       <fileset basedir=".">
>         <includes name="MetaViewer\bin\debug\*.dll"/>
>         <includes name="MetaViewer\bin\debug\*.pdb"/>
>         <includes name="MetaViewer\bin\debug\*.xml"/>
>         <includes name="MetaViewer\obj\debug\**"/>
>       </fileset>
>     </delete>
>   </target>
> 
> <target name="build" description="MetaViewer Debug Build">
> <solution configuration="Debug" 
> solutionfile="MetaViewer\MetaViewer.sln" verbose="true">
> <referenceprojects>
> <includes name="Petrolog.Library\Petrolog.Library.csproj" />
> </referenceprojects>
> </solution>
> </target>
> 
> 
>   <target name="backup" description="Create MetaViewer Source Backup">
>     <zip zipfile="Backups\MetaViewer.zip" verbose="true">
>       <fileset basedir=".">
>         <includes name="MetaViewer\**"/>
>       </fileset>
>     </zip>
>   </target>
> </project>
> 


****************************DISCLAIMER*********************************** 
Deze e-mail is uitsluitend bestemd voor de geadresseerde(n). Verstrekking aan en 
gebruik door anderen is niet toegestaan. Fortis sluit iedere aansprakelijkheid uit die 
voortvloeit uit electronische verzending.

This e-mail is intended exclusively for the addressee(s), and may not be 
passed on to, or made available for use by any person other than the 
addressee(s). Fortis rules out any and every liability resulting from 
any electronic transmission.
*******************************************************************************



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to