尝试在SharePoint项目中打开功能时出现Visual Studio错误(调用"OnImportsSatisfied"时发生异常) [英] Visual Studio error when trying to open a Feature in a SharePoint Project (An exception occurred while calling 'OnImportsSatisfied')
问题描述
当我尝试打开任何功能"窗口时,我在Visual Studio 2012和Visual Studio 2013中都收到以下错误消息.在SharePoint 2013项目中.
I am getting the following error message in both Visual Studio 2012 and Visual Studio 2013 when I try to open any "Feature" in a SharePoint 2013 project.
在类型为"Microsoft.VisualStudio.SharePoint.Designers.Package.ViewModels.FeatureViewModel"上调用"OnImportsSatisfied"方法时发生了异常.
(堆栈跟踪会持续存在一段时间-在下面完整显示)
(the stack trace then continues on for ages - shown in full below)
我__我最近运行Windows Update时就开始发生这种情况.
I _think_ this started happening when I ran Windows Update recently.
新旧项目(沙盒和农场解决方案)都会发生这种情况.
This happens for both old and new projects, both Sandbox and Farm solutions.
我尝试过:
- 删除过去一周的所有Windows更新
- 删除所有以前版本的Visual Studio(2012)
- 完全卸载并重新安装Visual Studio(之间需要重新启动)
- 安装VS2013 Update 1
我所做的一切似乎都无法解决..
Nothing that I do seems to fix this ..
完全错误:
致谢
马丁·哈奇
MCPD和MCITP SharePoint 2010
MCTS WSS 3.0 | MOSS 2007
www.martinhatch.com
regards
Martin Hatch
MCPD & MCITP SharePoint 2010
MCTS WSS 3.0 | MOSS 2007
www.martinhatch.com
推荐答案
更新...我已经进入Visual Studio 2013设置并完成了修改"并显示"Office Dev Tools"没有安装.
Update ... I have gone into Visual Studio 2013 setup and done a "Modify" and it says "Office Dev Tools" are not installed.
此后我已经连续添加了3次...但是重新运行安装程序仍然认为它们没有安装.
I have since added them 3 times in a row ... but re-running the installer STILL thinks they are NOT installed.
这篇关于尝试在SharePoint项目中打开功能时出现Visual Studio错误(调用"OnImportsSatisfied"时发生异常)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!