VS2010引用dll问题
在VS2010的项目添加了一个Library的文件夹存储微软企业库5.0中的dll:Microsoft.Practices.EnterpriseLibrary.Data.dll
然后在项目中添加该dll的引用,在使用的时候添加如下语句:
using Microsoft.Practices.EnterpriseLibrary.Data;
Database db = DatabaseFactory.CreateDatabase();
编辑代码的时候没什么问题,关键字也变色了。可一编译就出现如下错误:
The type or namespace name 'Practices' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
The type or namespace name 'Database' could not be found (are you missing a using directive or an assembly reference?)
不知道是怎么回事,请高手指教。
谢谢!