C
carqs123
What is the procedure for using a class defined in the same solution
but in another project?
The language I am using is c-sharp.
I have a solution with two projects in it. A c-sharp program in
project1 uses MyClass, which is defined in project2. In the solution
properties I set project1 to depend on project2.
I keep getting the "type or namespace name 'MyClass' could not be
found" error.
I defined a namespace in project2 and made sure MyClass was encompassed
by this namespace. Then I put the "using namespace" statement in the
project1 program.
This did not help.
Any suggestions?
but in another project?
The language I am using is c-sharp.
I have a solution with two projects in it. A c-sharp program in
project1 uses MyClass, which is defined in project2. In the solution
properties I set project1 to depend on project2.
I keep getting the "type or namespace name 'MyClass' could not be
found" error.
I defined a namespace in project2 and made sure MyClass was encompassed
by this namespace. Then I put the "using namespace" statement in the
project1 program.
This did not help.
Any suggestions?