错误"类型或命名空间名称找不到"在构建过程 [英] Error "The type or namespace name could not be found" during a build process

查看:296
本文介绍了错误"类型或命名空间名称找不到"在构建过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#Windows应用程序,我一直在使用

I'm using in C# Windows Application, I have using

TempProWin - >对于Windows应用程序项目结果
TempProApp - >有关。数据库和功能,例如使用CSLA方法类文件

TempProWin --> For Windows Application Projects
TempProApp --> For Database and functionality like Class File using CSLA Method.

在TempProWin.frmLogin.cs:

In TempProWin.frmLogin.cs:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using  TempProApp;

private void frmLogin_Load(object sender, EventArgs e)
{
 UserLoginList oUserLoginList = UserLoginList.GetUserLoginList();
 cmbUserName.DataSource = oUserLoginList;
 cmbUserName.DisplayMember = "Select User";
}



不过,当我建立这个应用程序,我得到了以下错误:

But When I build this application, I got the following error:

错误5类型或命名空间名称'TempProApp'找不到(是否缺少using指令或程序集引用?)

Error 5 The type or namespace name 'TempProApp' could not be found (are you missing a using directive or an assembly reference?)

我已经包括D的路径TempProApp.dll参考:\TempPro\TempProApp\bin\Debug

I already include reference of TempProApp.dll from the path of D:\TempPro\TempProApp\bin\Debug

推荐答案

单击鼠标右键上TempProApp并转到定义。

RightClick on TempProApp and Go to definition.

在最顶端,你会看到DLL的名称和版本。您可以验证是否在使用同一个DLL版本或没有。

On the top most, you will see the dll name and its version. You can verify that whether you are using the same dll version or not.

这篇关于错误"类型或命名空间名称找不到"在构建过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆