Visual Studio 2017 企业版无法添加引用 [英] Visual Studio 2017 enterprise can not add reference

查看:29
本文介绍了Visual Studio 2017 企业版无法添加引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想在 Visual Studio 2017 Enterprise 的项目中添加引用时.我收到以下错误:

When I want to add a reference in a project in Visual Studio 2017 Enterprise. I get the following error:

"The operation could not be completed"

我尝试过清理和重建解决方案,重新启动计算机,删除binobj 文件夹以及所有.suo 文件.我的 Web.config 文件中也没有错误.

I have tried cleaning and rebuilding solution, restart computer, delete bin and obj folder and all .suo files. Also there is no error in my Web.config file.

推荐答案

所以我得到了微软支持的帮助.

So I got help from microsoft support.

  1. 以管理员身份打开 Visual Studio 命令提示符
  2. 转到你的visual studio安装路径,标准为:C:\Program Files (x86)\Microsoft Visual Studio\2017\
  3. 选择您的安装类型并转到 \Common7\IDE\PublicAssemblies
  4. 运行命令:gacutil -if Microsoft.VisualStudio.Shell.Interop.8.0.dll
  5. 运行命令 gacutil -if Microsoft.VisualStudio.Shell.Interop.11.0.dll

这为我修好了

这篇关于Visual Studio 2017 企业版无法添加引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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