我无法在 Visual Studio 2017 中添加参考

I can#39;t add reference in Visual Studio 2017(我无法在 Visual Studio 2017 中添加参考)
本文介绍了我无法在 Visual Studio 2017 中添加参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在在 Visual Studio 2017 中添加引用时遇到问题.所以基本上,我单击了我的项目以显示折叠菜单,您可以在其中查看文件夹、属性和引用.我右键单击References 并选择Add reference.出现错误并显示无法完成操作.不支持此类接口".

I'm having issues right now on adding reference in Visual Studio 2017. So basically, I clicked on my project to show the collapsed menu where you can see folders, properties, and references. I right clicked References and chose Add reference. An error shows up and it says "The operation could not be completed. No such interface supported".

我目前使用的是 Microsoft Visual Studio Community 2017 版本 15.2.

I'm currently using Microsoft Visual Studio Community 2017 Version 15.2.

推荐答案

这个帖子帮我解决了这个问题:

This thread helps me resolve the issue:

https://developercommunity.visualstudio.com/content/problem/28126/unable-to-add-reference-in-visual-studio-2017-refe.html

总结一下,线程说我需要在缓存中添加某个 .dll 文件供我添加引用.不知道为什么会出现这个问题,但我希望它对遇到相同问题的人有所帮助.

Just to sum it up, the thread says that I need to add a certain .dll file on the cache for me to add References. Not sure why this issue occur but I hope it helps anyone who encounters the same issue.

这篇关于我无法在 Visual Studio 2017 中添加参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
quot;Overflowquot; compiler error with -9223372036854775808L(编译器错误-9223372036854775808L(Q;溢出Q))
Visual Studio 2010 ReportViewer Assembly References(Visual Studio 2010 ReportViewer程序集引用)
Weird behaviour when I open a reportviewer in WPF(在WPF中打开报表查看器时出现奇怪的行为)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)