My solution contains several projects including Commons and TerminatorConsole2. Now I want to refer Commons.Constants class from TerminatorConsole2.Utils.Constants file:
namespace TerminatorConsole2.Utils
{
class Constants
{
public const string MANAGEMENT_CONSOLE_ADDRESS =
Commons.Constants.USE_EXTRA_WCF_INSTANCE ?
"net.pipe://localhost/xxx" :
"net.pipe://localhost";
But I receive "Cannot resolve symbol" on "Commons". Adding "using Commons" doesn't help, I receive same error.
Why one project can not use class from another project of the same solution?
UPD Adding Constants class. However I already use it from one another project so I think this class is OK:
namespace Commons
{
public class Constants
{
public const int MAX_INSTRUMENTS_NUMBER_IN_SYSTEM = 200;
public const bool USE_EXTRA_WCF_INSTANCE = true;
}
}