Make sure the classes you want to access are publicly available. Suppose you have the following class in Project 2:
namespace Project2
{
public class Foo { }
}
In Project 1, after referencing Project 2, you can use this class:
namespace Project1
{
using Project2;
public class Bar
{
public Bar()
{
Foo foo = new Foo();
}
}
}
source
share