添加引用时报错:error hresult e_fail has been returned from a call to a com component
以2017为例解决办法:以管理员运行Developer Command Prompt for VS 2017,然后cd {VisualStudio安装目录}\2017\Community\Common7\IDE\PublicAssemblies,然后执行:gacutil -i Microsoft.VisualStudio.Shell.15.0.dll(进目录看下,可能是其它文件名),然后重启VS