Looks like you might be trying to to compile COM components. Be warned
that C++ support in NAnt is somewhat limitted. I've never been able to
compile any of my groups COM components using NAnt. (Not trying to bash
NAnt... NAnt works great for everything with the exception of C++) My
C++ projects also have some problems that are not NAnt related that I'm
sure are contributing.

Does the <solution> task know to compile .IDL files? If it doesn't (or
it does it at the wrong time) then that could explain why it can't find
that particular file.

Someone also mentioned the possibility of having a dependency to another
assembly... Make sure that those assemblies are being compiled prior to
this one.

I simply use the <exec> task and use devenv.com to compile my solutions.

Good Luck!!

--
Edwin G. Castro
Firing Systems Engineer
[EMAIL PROTECTED]
 
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of bruma
> Sent: Tuesday, July 27, 2004 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: [Nant-users] problems bilding .NET solution
> 
> hi,
> 
> I'm tring to build solution with vcproj (c++) projects.
> 
> This is my .build script:
> <?xml version="1.0"?>
> <project name="CBN Desktop" default="debug" basedir="." >
> 
>      <target name="debug">
>          <solution solutionfile="Desktop.sln" configuration="debug" />
>      </target>
> </project>
> 
> and this is output that I get:
> ____________________________________________________________________
> NAnt 0.85 (Build 0.85.1664.0; net-1.0.win32; nightly; 
> 22.7.2004) Copyright (C) 2001-2004 Gerry Shaw 
> http://nant.sourceforge.net
> 
> Buildfile: file:///c:/_Temp/2/src/desktop/modules/cbn4.build
> Target(s) specified: debug
> 
> 
> debug:
> 
>   [solution] Starting solution build.
>   [solution] Building 'CBNTrace' [debug]...
>         [cl] Compiling 1 files to 
> 'c:\_Temp\2\bin\desktop\CBNTrace\debug'.
>         [cl] CBNTrace_i.c
>         [cl] c1 : fatal error C1083: Cannot open source file:
> '..\..\..\..\bin\desktop\gensrc\debug\CBNTrace_i.c': No such 
> file or directory
> 
> Build failed
> 
> External Program Failed: cl (return code was 2)
> 
> Total time: 0.2 seconds.
> ______________________________________________________________
> ______________
> 
> The problem I think is that NAnt starts compiling at wrong 
> file, for example CBNTrace_i.c is generated during build proces.
> 
> What I'm doing wrong?
> I'm newbee in NAnt and I'm desperate, plese help.
> 
> My nant is working ok, I'm also building my project in VS.NET 
> without any problems.
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop FREE 
> Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to