“您是否缺少 using 指令或程序集参考"在视觉工作室 2013 [英] "Are you missing a using directive or an assembly reference" in visual studio 2013

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

问题描述

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

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. VisualStudio 中的清洁解决方案
  2. 关闭 VisualStudio
  3. 手动删除所有bin"和obj"文件夹(从整个解决方案中)
  4. 手动删除packages"文件夹
  5. 重启 VisualStudio
  6. 全部重建

在大多数情况下,这解决了这个参考问题(在我的情况下)

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

这篇关于“您是否缺少 using 指令或程序集参考"在视觉工作室 2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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