类型或名称空间名称"Practices"在名称空间"Microsoft"中不存在 [英] The type or namespace name 'Practices' does not exist in the namespace 'Microsoft'

查看:348
本文介绍了类型或名称空间名称"Practices"在名称空间"Microsoft"中不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Microsoft Visual Studio 2005用于c# 我的代码中有以下名称空间

I am using Microsoft Visual Studio 2005 for c# I have the following namespace on my code

using Microsoft.Practices.EnterpriseLibrary;
using Microsoft.Practices.EnterpriseLibrary.AppSettings;
using Microsoft.Practices.EnterpriseLibrary.Data;

而且我继续收到此错误:

and I keep on getting this error:

-类型或名称空间名称"Practices"在名称空间"Microsoft"中不存在(您是否缺少程序集引用?)

-The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

我该怎么办?

先谢谢了. :)

推荐答案

您应该在项目中添加对企业库的引用.您可以在此处下载dll: http://msdn.microsoft.com/en-us/library/ff648951.aspx

You should add a reference to the enterprise library from your project. You can download the dlls here: http://msdn.microsoft.com/en-us/library/ff648951.aspx

这篇关于类型或名称空间名称"Practices"在名称空间"Microsoft"中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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