Visual Studio 2010中 - 是否缺少using指令或程序集引用? [英] Visual Studio 2010 -- are you missing a using directive or an assembly reference?

查看:3009
本文介绍了Visual Studio 2010中 - 是否缺少using指令或程序集引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我加入到我的Visual Studio项目DLL的引用,我能够使用它,但是当我编译我的代码或尝试运行它,我得到一个 是否缺少using指令或程序集引用? _ 错误。我可以确认我已经使用语句我命名的权利,我可以证实,该dll被加载正确。
任何人有任何想法我可能没有正确的呢?

When I add a reference to my dll in Visual Studio project, I am able to use it, but when I compile my code or try to run it, I get an are you missing a using directive or an assembly reference?_ Error. I am able to confirm that I have the right using statement for my namespace and I am able to confirm that the dll is correctly loaded. Anyone have any idea what I may not have right in this?

推荐答案

转到项目设置,并确保你的不可以编译为一个.NET项目版本包括文本客户端配置文件。

Go to project settings and make sure that you are not compiling the project for a .net version that includes the text "client profile".

这篇关于Visual Studio 2010中 - 是否缺少using指令或程序集引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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