Lorenzo, Unless you include the csc element from your script file, it's difficult to say for sure, but the most obvious question to ask is, have you included a <references/> sub-element in your csc task? Have a look at the bottom of the csc task's documentation page for an example.
http://nant.sourceforge.net/release/latest/help/tasks/csc.html In my experience, references to standard assemblies included in the .NET framework aren't necessary (contrary to the example), but references to other 3rd party assemblies, or indeed to any of your own libraries, most certainly are. Failure to include those references would result in the error message you've reported. Since you already have a Visual Studio solution available, you could also try using the <solution/> task as an alternative to compiling the individual projects using separate <csc/> tasks. Note, however, that the <solution/> task doesn't yet work with Visual Studio 2005 solution files. Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lorenzo Bolognini Sent: 04 September 2006 16:32 To: nant-users@lists.sourceforge.net Subject: [NAnt-users] nant script failing on csc errors (missing assemblyreference) Hi all, nant is failing for me with csc errors saying it cannot find the reference. The type or namespace name 'Global' could not be found (are you missing a using directive or an assembly reference?) I've got many errors like this though the compilation through visual studio works without any problems and i'm able to compile/run the software. I'm using 0.85 rc4 Any clue of what i might be doing wrong? Thanks, Lorenzo ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users