Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

NAnt for building ASP.NET solutions

Any body uses NAnt as a build tool for their ASP.NET C# projects ?

I seem to get some weired error messages, when building using NAnt.

One of the problems is this error message: C:\danielel\WORK\DAIDS-ES\ARCHDEMO\DAIDSES.DataAccess\OraHelper.cs(15,20): error CS0234: The type or namespace name 'OracleClient' does not exist in the class or namespace 'System.Data' (are you missing an assembly reference?)

I have already made a reference to this OracleClient assembly, but this error message pops up while building with NAnt. But if I build with VisualStudio directly, the build is okay.

Also, I get this error message from another project:
      [csc] Compiling 2 files to C:\danielel\WORK\DAIDS-ES\ARCHDEMO\build\DAIDSES.CommonBF.dll.
            error CS5001: Program 'C:\danielel\WORK\DAIDS-ES\ARCHDEMO\build\DAIDSES.CommonBF.dll' does not have an entry point defined

But, if I build the same project directly from VisualStudio, the build is fine.

Any suggestions would be greatly appreciated.

Thursday, December 18, 2003

It sure looks like you've got wrong switches for your NAnt: missing assembly references, and wrong output type.

Brad Wilson (
Thursday, December 18, 2003

The second problem "does not have an entry point defined
" is taken care of by specifying the output type as library.

But the reference on OracleClient is still a mystery !

Thursday, December 18, 2003

Any chance you could post (or email) lines 1-25 of the src file in question, and your .build file's <csc> element?

Gordon Hartley
Friday, December 19, 2003

*  Recent Topics

*  Fog Creek Home