can't reference class from another project of the same solution

后端 未结 3 1272
囚心锁ツ
囚心锁ツ 2021-01-28 16:43

My solution contains several projects including Commons and TerminatorConsole2. Now I want to refer Commons.Constants class from Ter

3条回答
  •  一个人的身影
    2021-01-28 17:12

    jeroenh correctly answered the question in a comment... I needed to add a reference.

    I didn't need to declare the class public, since only class which is used should be public. class that "using" doesn't have to be public.

提交回复
热议问题