“您是否缺少using指令或程序集引用"?在Visual Studio 2013中

编程入门 行业动态 更新时间:2024-10-14 12:25:00
本文介绍了“您是否缺少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:

  • 在Visual Studio中清洁解决方案
  • 关闭VisualStudio
  • 手动(从整个解决方案中)删除所有"bin"和"obj"文件夹
  • 手动删除"packages"文件夹
  • 重新启动VisualStudio
  • 全部重建
  • 在大多数情况下,这可以解决此引用问题(就我而言)

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

    更多推荐

    “您是否缺少using指令或程序集引用"?在Visual Studio 2013中

    本文发布于:2023-11-09 04:29:32,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1571405.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:指令   您是否   程序   quot   Studio

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!