Yeah, everything builds perfectly in VS.NET, and Nant is happy after I move the using statements (the references are all there, it just doesn't like where the using statements are).
I've tracked down exactly which using statements this does happen on...It only ever happens on classes that are "using" a namespace from a referenced assembly. My "using System" declarations work perfectly. The only time it complains is when I am using a few certain of my "framework" classes, and only when the classes doing the using are in a namespace underneath the main namespace in the assembly... [greatland.core.data.dll] class GreatLand.Core.DataManager {} [greatland.business.dll] (refs core) using GreatLand.Core.Data; namespace GreatLand.Business.Data { class AgencyData : DataManager {} } Try to compile with csc or NAnt and it says that DataManager cannot be found. Compile with VS.NET and it works fine. Move the using statement inside the namespace and it'll compile everywhere... Very strange. Ideas? Adam... -----Original Message----- From: Adam Senn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 8:54 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Csc problems with using statements Adam In all of our C# source files, the using statements are outside of the namespace. We use primarily makefiles [which call csc] along with a few instances of nant to build our projects and I've never needed to move the using statements into the namespaces. Perhaps some needed references were missing on the command line? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.