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



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

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

按OK将错误窗口再次返回。这发生了大约5次,然后出现了预期的菜单。

有什么想法为什么?

我尝试过的东西。

  • 重新创建项目。
  • 维修vs 2015安装
  • 将项目移至我的笔记本电脑。笔记本电脑正在运行VS2017 RC和Windows 10的最新内幕预览。

更新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 FILESMICROSOFTEXTENSIONMANAGEREXTENSIONSMICROSOFTWINDOWS KITS10WINDOWS STORE SDK...</description>
<path>C:PROGRAM FILES (X86)COMMON FILESMICROSOFTEXTENSIONMANAGEREXTENSIONSMICROSOFTWINDOWS KITS8.0METRO 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 FILESMICROSOFTEXTENSIONMANAGEREXTENSIONSMICROSOFTWINDOWS KITS10DESKTOP SDK...</description>
<path>C:PROGRAM FILES (X86)COMMON FILESMICROSOFTEXTENSIONMANAGEREXTENSIONSMICROSOFTWINDOWS KITS8.1DESKTOP 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 FILESMICROSOFTEXTENSIONMANAGEREXTENSIONSMICROSOFTWINDOWS KITS10WINDOWS STORE SDK...</description>
<path>C:PROGRAM FILES (X86)COMMON FILESMICROSOFTEXTENSIONMANAGEREXTENSIONSMICROSOFTWINDOWS KITS8.1WINDOWS 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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.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.0COMMON7IDEEXTENSIONSUHH1GTS.5EQTMLanguage.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.0COMMON7IDEEXTENSIONSR0KXUUR5.OBEMicrosoft.VisualStudio.TeamFoundation.SharePointReporting.dll</path>

`

我也有同样的问题。您不会碰巧使用Syncfusion控件吗?在对我的问题进行故障排除并做一些与您(修复.NET,SDK,Visual Studio)相同的事情之后,我然后考虑了错误。虽然它是神秘的(并且英语不良"发生了例外")这些都是您也可以通过扩展安装的任何框架的线索。

我还有另一个线索,几周前我开始将Syncfusion控件更新为最新版本的时间开始发生。

所以,我去了工具>扩展和更新。我去了安装>全部,发现了所有的综合项目(有几个),并将其全部禁用。禁用它们后,您必须重新启动Visual Studio。之后,问题消失了!!!

这是现在的解决方法。同时,我在此问题上放了一张支持票,并进行了同步。当我从它们那里得到响应时,我一定会更新此线程。同时,与此同时,我可以尝试一次启用每个人,以查看哪个问题正是造成问题的,尽管可能是其中几个。

如果您不使用Synclusion,我建议通过浏览扩展名并禁用您添加的任何内容,从最新的添加ONS开始,尤其是当您开始添加它们时,尤其是当您开始遇到问题时直到找到罪魁祸首。

希望这会有所帮助!

编辑 - 通过消除过程(或者更好,一次启用每个控件),我发现在我的情况下,只有一个综合控制控件是罪魁祸首。这是网络转换和迁移。除此之外,所有其他都将启用,并且问题没有发生。好消息,如果您不需要此控件,那么将其禁用可能就可以了。但是,我还将更新Syncfusion。

编辑2-我从同步灌注中收到了响应。他们确认并解决了问题。因此,如果您不需要该控件,请将其禁用。如果您确实需要它,则是修复。

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

嗨,迈克尔,

对造成的不便,抱歉。

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

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

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

  1. 提取下载的zip文件。

  2. 从下面的位置删除现有的项目转换目录。

c: program Files(x86) SyncFusion Essential Studio 14.4.0.15 utilities Extensions

  1. 现在,将提取的项目转换目录复制到上述位置。然后,执行从下面知识库的步骤,以将更新的Syncfusion Web转换和迁移扩展安装到视觉工作室。

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

注意:此问题已解决,并将包含在我们的SyncFusion 2016第4卷SP1版本中。

问候,
Kanimozhi K.P.

我们怀疑当Visual Studio在Syncfusion安装时打开时可能会发生问题。请确保在安装同步融合时没有打开Visual Studio实例。为了将最新的Syncfusion扩展安装到视觉工作室,而不是禁用SyncFusion扩展名,请按照以下文档链接中建议的步骤操作。

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

问候,Manivannan s。

最新更新