C# Console App Add Reference

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

I have an existing application that has 3 different Projects inside of
it.
The projects are: Administration, DataAccessComponents, and Utilities.

I have added a fourth, a console applications.

Inside of the console app references, I have added a reference to one
of the other projects so that I my make calls to it as shown below:

using Blah.DataAccessComponents;

This is the exact same way that I made a reference to it in the other
projects and it works there. However, when I run the console app from
the command line, I get the following error: error CS0234: The type or
namespace name DataAccessComponents does not exist in the class or
namespace Blah

Anyone know why this would work in the other projects but fail in the
console application?

Thanks

-Tim
 
You are using the "using" statement, but did you add the
DataAccessComponents project to your list of project references? (In the
solution explorer, if you expand the list of references for your project,
does it include a reference to the DataAccessComponents.dll?)

--- Nick
 
Back
Top