|
Subject:
|
Adding references and scope issues
|
|
Posted By:
|
Artfuldodger
|
Post Date:
|
7/1/2008 12:03:56 PM
|
I am trying to reference a class in another project. I made the classes public. I then went to the other project and added a reference to the other projects exe and tried to build the solution.
It does not find my namespace or classes.
Any ideas.
|
|
Reply By:
|
planoie
|
Reply Date:
|
7/1/2008 1:29:53 PM
|
First off... you don't reference classes, you reference assemblies. A reference can be project reference or a binary reference. Which are you using?
From the sounds of it you are referencing an EXE. This is not how it is done usually. This might be the source of your problem. You should create a class library instead and reference that from both the EXE and other project(s).
You say "It does not find my namespace or classes." Can you elaborate? Are you getting a build error? What is the error exactly?
-Peter compiledthoughts.com
|
|
Reply By:
|
Artfuldodger
|
Reply Date:
|
7/1/2008 1:56:29 PM
|
Peter,
I finally figured out that I needed to create a class library and reference it in my project, etc.
So I learned the hard way.
Thanks for your help.
|