Anyone else noticed that if you create cs files in visual studio, it puts
all of your using statements above the namespace:

using System;
//blah
namespace MyNamespace {}

While trying to use Nant and CSC to compile some of my projects, I start to
get the "Type or Namespace 'foo' does not exist in ..." errors from the
compiler. If I then move the using statements inside the namespace
declaration, it compiles perfectly (both csc and Nant).

Is this a problem with the compiler? Is it just my problem?

Thanks

Adam..

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to