Visual Studio“命名空间不存在***”的问题

想在vs中连接数据库,

添加“using System.Data.SqlClient;”引用时却报错“命名空间System中不存在Data"



(大小写及拼写都正确)


问题在于项目中没有导入相应的dll


解决方法:


右键项目中的引用→

添加引用→

浏览→

找到“System.Data.dll”文件→

添加





猜你喜欢

转载自blog.csdn.net/yyyerica/article/details/50927331
今日推荐