vs2015 在解决方案资源管理器中右键单击项目时出错 [英] vs2015 Error when right clicking project in solution explorer

查看:23
本文介绍了vs2015 在解决方案资源管理器中右键单击项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在创建 UWP 应用时遇到问题.如果我在解决方案资源管理器中右键单击我的项目,我会在 VS2015 中弹出以下错误

I am having issues with creating UWP apps. If i right click my project in solution's explorer I get the following error pop up in VS2015

获取项目的 Visual Studio 框架版本时发生异常.

按确定将再次返回错误窗口.这种情况大约发生 5 次,然后出现预期的菜单.

Pressing ok brings the error window back again. This happens about 5 times and then the menu that is expected appears.

知道为什么吗?

我尝试过的东西.

  • 重新创建项目.
  • 修复VS 2015安装
  • 将项目移到我的笔记本电脑上.笔记本电脑正在运行 VS2017 RC 和最新的 Windows 10 内部预览版.

更新 1:尝试了ezaspi在第一条评论中提到的内容,日志中的所有错误如下.

Update 1: Tried what ezaspi mentions in the first comment and all the errors from the log are as below.

<entry>
<record>523</record>
<time>2016/11/30 16:56:52.502</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.WindowsStore&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\10\WINDOWS STORE SDK\...</description>
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.0\METRO SDK\</path>
</entry>
<entry>
<record>524</record>
<time>2016/11/30 16:56:52.502</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.Desktop&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\10\DESKTOP SDK\...</description>
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\DESKTOP SDK\</path>
</entry>
<entry>
<record>525</record>
<time>2016/11/30 16:56:52.502</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.WindowsStore&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\10\WINDOWS STORE SDK\...</description>
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\WINDOWS STORE SDK\</path>
</entry>
<entry>
<record>166</record>
<time>2016/11/30 16:56:50.340</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.TeamExplorer.Navigation.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.TeamExplorer.Navigation.dll</path>
</entry>
<entry>
<record>167</record>
<time>2016/11/30 16:56:50.344</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.Build.Controls.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.Build.Controls.dll</path>
</entry>
<entry>
<record>168</record>
<time>2016/11/30 16:56:50.349</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.CodeReview.Controls.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.CodeReview.Controls.dll</path>
</entry>
<entry>
<record>169</record>
<time>2016/11/30 16:56:50.381</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.CodeReview.Components.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.CodeReview.Components.dll</path>
</entry>
<entry>
<record>170</record>
<time>2016/11/30 16:56:50.386</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.Git.Provider.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.Git.Provider.dll</path>
</entry>
<entry>
<record>171</record>
<time>2016/11/30 16:56:50.390</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.Git.Controls.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.Git.Controls.dll</path>
</entry>
<entry>
<record>172</record>
<time>2016/11/30 16:56:50.394</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.Build.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.Build.dll</path>
</entry>
<entry>
<record>173</record>
<time>2016/11/30 16:56:50.398</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.dll</path>
</entry>
<entry>
<record>174</record>
<time>2016/11/30 16:56:50.402</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.ContextManagement.Package.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.ContextManagement.Package.dll</path>
</entry>
<entry>
<record>175</record>
<time>2016/11/30 16:56:50.407</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll</path>
</entry>
<entry>
<record>176</record>
<time>2016/11/30 16:56:50.411</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.VersionControl.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.VersionControl.dll</path>
</entry>
<entry>
<record>177</record>
<time>2016/11/30 16:56:50.416</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.VersionControl.Controls.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.VersionControl.Controls.dll</path>
</entry>
<entry>
<record>178</record>
<time>2016/11/30 16:56:50.420</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.Workspaces.Contracts, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\0UHH1GTS.5EQ\TMLanguage.dll</path>
</entry>
<entry>
<record>179</record>
<time>2016/11/30 16:56:50.425</time>
<type>Error</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.SharePointReporting.dll&apos; or one of its dependencies. The system cannot find the file specified.</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.SharePointReporting.dll</path>

`

推荐答案

我遇到了同样的问题.你不会碰巧使用 SyncFusion 控件吧?在对我的问题进行故障排除并做了一些与您相同的事情(修复 .Net、SDK、Visual Studio)之后,我对这个错误有了更多的思考.虽然它很神秘(并且英语很差发生异常"),但这些都是表明它也可能是您通过扩展安装的任何框架的线索.

I am having the same issue. You wouldn't happen to be using SyncFusion controls would you? After troubleshooting my issue and doing some of the same things as you (repairing .Net, SDK, Visual Studio) I then thought about the error a bit more. While it is cryptic (and has poor english "An Exception has been occured") these are all clues that it could be any of the frameworks that you have installed via extensions as well.

我还有另一个线索,这个问题在几周前开始发生,大约在我将 SyncFusion 控件更新到最新版本的时候.

I also had another clue, the issue started happening a few weeks ago, around the time I updated my SyncFusion controls to the latest version.

所以,我转到了工具 > 扩展和更新.我转到已安装">全部"并找到所有 SyncFusion 项目(有几个)并将它们全部禁用.禁用它们后,您必须重新启动 Visual Studio.之后,问题就解决了!!!

So, I went to Tools > Extensions and Updates. I went to Installed > All and found all of the SyncFusion items (there are several) and disabled them all. After you disable them, you have to restart Visual Studio. After that, problem went away!!!

这是目前的解决方法.与此同时,我就这个问题向 SyncFusion 提交了支持票.当我得到他们的回应时,我肯定会更新这个线程.同时,我可以尝试一次启用每一个,以查看究竟是哪一个导致了问题,尽管可能是其中几个.

This is a workaround for now. In the meantime, I put in a support ticket with SyncFusion on the issue. I will certainly update this thread when I get a response from them. Also in the meantime, I could try to enable each one, one at a time, to see which one exactly is causing the issue though it could be several of them.

如果您没有使用 SyncFusion,我建议您通过浏览您的扩展并禁用您添加的任何内容来执行类似的操作,从最近的附加组件开始,特别是如果它们是在您开始遇到问题的同时添加的直到你找到罪魁祸首.

If you are not using SyncFusion, I suggest doing something similar by going through your extensions and disable any that you added on, starting with the most recent add ons, especially if they were added around the same time you started having the problem until you find the culprit.

希望这会有所帮助!

编辑 - 通过消除过程(或者更好,一次启用每个控件),我发现只有一个 SyncFusion 控件是我的案例的罪魁祸首.它是 Web 转换和迁移.除此以外的所有其他功能均已启用,并且未发生此问题.好消息是,如果您不需要此控件,将其禁用可能会很好.不过,我也会更新 SyncFusion.

EDIT -By process of elimination (or better, enabling each control again one at a time) I have found that only one of the SyncFusion controls is the culprit in my case. It is the Web Conversion and Migration. All others except this one are enabled and the issue is not happening. Good news if you don't need this control, it might be fine to just leave it disabled. However, I will also update SyncFusion.

编辑 2 - 我收到了 Syncfusion 的回复.他们确认并解决了这个问题.因此,如果您不需要该控件,请将其禁用.如果您确实需要它,这里是修复程序.

EDIT 2 - I recevied a response from Syncfusion. They confirmed and fixed the issue. So, if you dont need that control, leave it disabled. If you do need it, here is the fix.

于 12/2/2016 1:15:55 AM 更新:Kanimozhi Pandian [Syncfusion]

Updated on 12/2/2016 1:15:55 AM by: Kanimozhi Pandian [Syncfusion]

迈克尔,

很抱歉给您带来的不便.

Sorry for the inconvenience caused .

检测 Syncfusion Web 转换和迁移扩展不支持的项目的框架版本时出现问题.现在,我们已经解决了这个问题,您可以从这里获取更新的 Syncfusion Web 转换和迁移扩展:

The issue occurred while detecting the framework version of the projects which are not supported by Syncfusion Web conversion and Migration Extension. Now, we have fixed the issue and you can get the updated Syncfusion Web Conversion and Migration extension from here:

  http://www.syncfusion.com/downloads/support/directtrac/168382/ze/Project_Conversion-2034375715    

执行以下步骤以重新安装更新的 Syncfusion Web 转换和迁移扩展.

Perform the below steps to reinstall the updated Syncfusion Web Conversion and Migration extension.

  1. 解压下载的 zip 文件.

  1. Extract the downloaded zip file.

从以下位置删除现有的项目转换目录.

Remove the existing Project Conversion directory from the below location.

C:\Program Files (x86)\Syncfusion\Essential Studio\14.4.0.15\Utilities\Extensions

C:\Program Files (x86)\Syncfusion\Essential Studio\14.4.0.15\Utilities\Extensions

  1. 现在,将提取的项目转换目录复制到上述位置.然后,执行以下知识库中的步骤,将更新的 Syncfusion Web 转换和迁移扩展安装到您的 Visual Studio.

  1. Now, copy the extracted Project Conversion directory to the above mentioned location. Then, perform the steps from the below Knowledge Base to install the updated Syncfusion Web Conversion and Migration extension to your Visual Studio.

         https://www.syncfusion.com/kb/4799/how-to-install-the-syncfusion-vsix-packages-manually        

注意:此问题已得到修复,并将包含在我们的 Syncfusion 2016 Volume 4 SP1 版本中.

Note: This issue has been fixed and will be included with our Syncfusion 2016 Volume 4 SP1 release.

问候,
Kanimozhi K.P.

Regards,
Kanimozhi K.P.

这篇关于vs2015 在解决方案资源管理器中右键单击项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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