有一个第三方的A.Core.dll, 已知里面的一个类 place
在项目中如下引用:using A.Core;namespace B.C
{
     class X : A.Core.place
      {
         //....
       }
}在同一个VS解决方案下 不同Project中使用的时候:using B.C;namespace B.D
{
     public class Form : System.Windows.Forms.Form
      {
         private void menuItem3_Click(object sender, EventArgs e)
         {
             X p = new X();
             //...
          }
         //....
       }
}
这样调用哪里错了?求指教!
 

解决方案 »

  1.   

    A.Core.dll 引用一下那里错了?
      

  2.   


    引用了也不行, VS提示 X 不存在, Error 12 The type or namespace name 'X' does not exist in the namespace 'B.C' (are you missing an assembly reference?)
      

  3.   


    Error 12 The type or namespace name 'X' does not exist in the namespace 'B.C' (are you missing an assembly reference?)
      

  4.   

    我晕,怎么回复了两遍...对了,填上 A.Core.dll的引用也不行~
      

  5.   

    class X 
    =>
    public class X 
      

  6.   

    class X
    =>
    public class X重新编译一下B.C这个项目
      

  7.   

    在project B中引用project A(class A所在项目)
    右键project->Add Reference