0

我无法从项目中找到装配体。我有两个控制台应用程序,一个我从另一个那里引用。但后来我不能做出使用语句,因为它找不到项目......

错误图片


编辑:我在 Lab1PersonId 中的程序类:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lab1PersonId
{
    class Program
    {
        static void Main(string[] args)
         {
        }
     }
 }

编辑:

using Lab1PersonId;

namespace Test
{
    public class Program
    {
        static void Main(string[] args)
        {
            Lab1PersonId lab = new Lab1PersonId();   ***
        }
    }
 }

第 *** 行出错:需要类型名称,但找到命名空间

4

1 回答 1

0

你的设置看起来不错。您已Lab1PersonId在 Test 项目中添加了对该项目的引用,因此通常您应该能够使用在此程序集中定义的类。

例如,您应该首先重建Lab1PersonId项目,然后您应该能够添加对其中存在的某个命名空间的引用:

using Lab1PersonId;
于 2013-02-03T15:33:55.013 回答