“您是否缺少using指令或程序集引用"?在Visual Studio 2013中 [英] "Are you missing a using directive or an assembly reference" in visual studio 2013

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

问题描述

大家好.遇到此错误您是否缺少using指令或程序集引用"时,我正在Xamarin.Forms中开发跨平台应用程序.在安装Nuget软件包(Xamarin中的Circle Image View)之前,我的项目运行良好,但是当我卸载它(不更改一行代码)时,出现了上述错误. 我尝试构建,重建它,但仍然无法正常工作.我能做些什么来解决这个问题?任何帮助将不胜感激.非常感谢.

Good Day everyone. I'm developing a Cross Platform Application in Xamarin.Forms when I encounter this error "Are you missing a using directive or an assembly reference". My project is working fine before I install a Nuget package (Circle Image View in Xamarin), but when I uninstall it (without changing a single line of code) the said error started to appear. I tried to Build, Rebuild it but still it does not work. Anything I can do to fix this? Any help will be appreciated. Thanks a lot.

这些是错误:

错误1:

找不到类型或名称空间名称"Xamarin"(您是否缺少using指令或程序集引用?)

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

错误2:

找不到类型或名称空间名称应用程序"(您是否缺少using指令或程序集引用?)

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

错误3:

找不到类型或名称空间名称"Xamarin"(您是否缺少using指令或程序集引用?)

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

错误4:

找不到类型或名称空间名称"ContentPage"(您是否缺少using指令或程序集引用?)

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

推荐答案

在我的环境中遇到这样的错误时,我会执行以下操作:

When I got an error like this on my Environment, I do following:

  1. 在Visual Studio中清洁解决方案
  2. 关闭VisualStudio
  3. 手动(从整个解决方案中)删除所有"bin"和"obj"文件夹
  4. 手动删除"packages"文件夹
  5. 重新启动VisualStudio
  6. 全部重建

在大多数情况下,这可以解决此引用问题(就我而言)

In most cases, this solves this reference-problems (in my case)

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

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