Reference/Using

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

Hello, I am new to Namespaces and to C#. I created a solution and in that
solution, I have two projects. One project has a windows form. The second
Project is a "classLibrary". I want the first project to be able to access
the class in project 2. I added a reference to the second project in the
first project. I then added a "using MySecondProject;", but this results
in a "The Type or Namespace MySecond Project could not be found (Are you
missing a using directive or an Assebly reference".

What am I doing wrong?
 
Jim Heavey said:
Hello, I am new to Namespaces and to C#. I created a solution and in that
solution, I have two projects. One project has a windows form. The second
Project is a "classLibrary". I want the first project to be able to access
the class in project 2. I added a reference to the second project in the
first project. I then added a "using MySecondProject;", but this results
in a "The Type or Namespace MySecond Project could not be found (Are you
missing a using directive or an Assebly reference".

What am I doing wrong?

Using is supposed for namespacesa not assemblies.
Try "using namespace_of_class1"
 
Back
Top