I have a C# console application with three assemblies: Main
, Common
and Utilities
.
In a file in the Main
assembly, Main.cs
, I have the line:
using Utilities;
In a directory within the Common
assembly, I have the DLL IBM.Data.DB2.dll
.
In the Utilities
assembly, I have a source module which accesses said dll.
Utilities has a Reference to IBM.Data.DB2
.
In a source file within this assembly, Util.cs
, I have the line:
using IBM.Data.DB2;
If, within a method in this file, I make any reference to code within the DB2 assembly, as in:
DbConnection c = new DB2Connection( _connectString );
I get an error compiling the Main
assembly stating that the namespace name Utilities
can not be found. Utilities
compiles fine with or without the line. If I comment out the above line, everything compiles fine.