What you need to do is to include the *Project* for the class library in the
Solution for any application that wants to use it. You can include a project
in as many Solutions as you like. I have a single class library Project that
is included in every Solution that I have written. After including the
Project in the Solution, create a reference to the *Project* in the other
Project. Visual Studio will manage the rest.
--
HTH,
Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com
A man, a plan, a canal, a palindrome that has.. oh, never mind.
"Daniela Roman" <da**********@rogers.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
hello,
I want to create a class in a library:
public class GetHello
{
private string aa = "Hello world";
public GetHello()
{
//
// TODO: Add constructor logic here
//
}
public string GetContent()
{
return aa;
}
}
Then I create a simple project and I want to use the GetContent to return
the string.
What I did was to add a reference to the dll created by the library
class, from the Projects tab.
then I create an object:
MyData_Object myObj = new MyData_Object();
trying to use myObj, it does not see the method I created earlier:
GetContent
Thank you