简体   繁体   English

vs2015在解决方案资源管理器中右键单击项目时出现错误

[英]vs2015 Error when right clicking project in solution explorer

I am having issues with creating UWP apps. 我在创建UWP应用时遇到问题。 If i right click my project in solution's explorer I get the following error pop up in VS2015 如果我在解决方案的资源管理器中右键单击我的项目,则会在VS2015中弹出以下错误

An exception has been occurred while getting the visual studio framework version of the project.

Pressing ok brings the error window back again. 按“确定”将再次返回错误窗口。 This happens about 5 times and then the menu that is expected appears. 这发生大约5次,然后出现预期的菜单。

Any ideas why? 有什么想法吗?

Things I have tried. 我尝试过的东西。

  • Recreate the project. 重新创建项目。
  • Repair VS 2015 installation 修复VS 2015安装
  • Move the project on to my laptop. 将项目移到我的笔记本电脑上。 Laptop is running VS2017 RC and latest insider preview of windows 10. 笔记本电脑正在运行VS2017 RC和Windows 10的最新内部预览。

Update 1: Tried what ezaspi mentions in the first comment and all the errors from the log are as below. 更新1:尝试ezaspi在第一条评论中提到的内容,日志中的所有错误如下。

<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>

` `

I am having the same issue. 我有同样的问题。 You wouldn't happen to be using SyncFusion controls would you? 您不会碰巧使用SyncFusion控件吗? 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. 在解决了我的问题并做了一些与您相同的事情(修复.Net,SDK,Visual Studio)之后,我再考虑了该错误。 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. 尽管它是神秘的(并且英语不好,“发生了异常”),但所有这些线索都可能是您通过扩展安装的任何框架。

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控件更新为最新版本的时候。

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. 我转到“已安装”>“全部”,找到了所有SyncFusion项(有几个)并将其全部禁用。 After you disable them, you have to restart Visual Studio. 禁用它们后,必须重新启动Visual Studio。 After that, problem went away!!! 之后,问题就消失了!!!

This is a workaround for now. 目前,这是一种解决方法。 In the meantime, I put in a support ticket with SyncFusion on the issue. 同时,我就此问题与SyncFusion一起提供了支持票。 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. 同样,在此期间,我可以尝试一次启用一个,以查看到底是哪个引起了问题,尽管可能是其中的几个。

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,我建议您做一些类似的事情,从扩展到最新添加的附件,并禁用所有添加的附件,特别是如果它们是在您开始遇到问题的同时添加的,直到您发现罪魁祸首。

Hope this helps! 希望这可以帮助!

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. 编辑-通过消除过程(或更好的方法,一次再次启用每个控件),我发现SyncFusion控件中只有一个是我的罪魁祸首。 It is the Web Conversion and Migration. 这是Web转换和迁移。 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. 但是,我还将更新SyncFusion。

EDIT 2 - I recevied a response from Syncfusion. 编辑2-我收到了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. 如果确实需要它,这里是解决方法。

Updated on 12/2/2016 1:15:55 AM by: Kanimozhi Pandian [Syncfusion] 更新于2016/2/2 1:15:55发布者:Kanimozhi Pandian [Syncfusion]

Hi Michael, 嗨,迈克尔,

Sorry for the inconvenience caused . 对带来的麻烦表示抱歉 。

The issue occurred while detecting the framework version of the projects which are not supported by Syncfusion Web conversion and Migration Extension. 在检测Syncfusion Web转换和迁移扩展不支持的项目的框架版本时发生了问题。 Now, we have fixed the issue and you can get the updated Syncfusion Web Conversion and Migration extension from here: 现在,我们已解决了该问题,您可以从此处获取更新的Syncfusion Web转换和迁移扩展:

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

Perform the below steps to reinstall the updated Syncfusion Web Conversion and Migration extension. 执行以下步骤,重新安装更新的Syncfusion Web转换和迁移扩展。

  1. Extract the downloaded zip file. 解压缩下载的zip文件。

  2. Remove the existing Project Conversion directory from the below location. 从以下位置删除现有的Project Conversion目录。

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. 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. 然后,执行以下知识库中的步骤,将更新的Syncfusion Web转换和迁移扩展安装到Visual Studio。

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

Note: This issue has been fixed and will be included with our Syncfusion 2016 Volume 4 SP1 release. 注意:此问题已修复,将包含在我们的Syncfusion 2016 Volume 4 SP1版本中。

Regards, 问候,
Kanimozhi KP 卡尼莫芝KP

We suspect that the issue might occurred as Visual Studio was opened at the time Syncfusion installation. 我们怀疑在安装Syncfusion时打开Visual Studio时可能会出现此问题。 Please make sure that Visual Studio instance was not open at the time of Syncfusion installation. 请确保在安装Syncfusion时未打开Visual Studio实例。 In order to install the latest Syncfusion extensions to your Visual Studio instead of disabling the Syncfusion extensions, please follow the steps suggested in the following documentation link. 为了将最新的Syncfusion扩展安装到Visual Studio中,而不是禁用Syncfusion扩展,请按照以下文档链接中建议的步骤进行操作。

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

Regards, Manivannan S. 此致Manivannan S.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VS2015解决方案资源管理器“全部存档..”条目丢失 - VS2015 solution explorer “Archive All..” entry is missing VS2015:如何隐藏解决方案资源管理器中的“参考”文件夹? - VS2015: How to hide the 'References' folder in solution explorer? 在VS2015中的.fs文件中右键单击可打开FSI - Right clicking inside an .fs file in VS2015 opens FSI VS2015在构建解决方案中发布多个Web项目 - VS2015 publish multiple web project in a solution on build VS2015 解决方案构建给出编译错误 - VS2015 solution build giving compile error 从工作区打开解决方案时,VS2015冻结 - VS2015 freezes when opening solution from workspace 使用Shared Project项目模板时VS2015错误-无法将ProjectNode强制转换为IVsAggeregatableProject - VS2015 error when using Shared Project project template - Unable to cast ProjectNode to IVsAggeregatableProject 尝试将VS2015与Dynamics CRM 2015连接时出错 - Error when trying to connect VS2015 with Dynamics CRM 2015 在vs2015中打开旧项目时的企业库参考错误 - Enterprise Library reference error when opening a legacy project in vs2015 如何在VS2015中按名称隐藏解决方案资源管理器中的文件? - How can I hide files from Solution Explorer by name in VS2015?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM