【问题标题】:Service Fabric tooling for Visual Studio 2015 Update 2 seems to be brokenVisual Studio 2015 Update 2 的 Service Fabric 工具似乎已损坏
【发布时间】:2016-10-26 15:05:14
【问题描述】:

我已经安装了 SF SDK 2.1.150 (VS2015),克隆了 https://github.com/Azure-Samples/service-fabric-dotnet-getting-started 并在以管理员身份运行的 Visual Studio 2015 Update 2 中打开。我无法选择 WordCount 应用程序作为启动项目:

尝试从“Service Fabric 应用程序”模板创建新项目,在“新建项目”对话框中单击“确定”后,我收到错误消息:

预计有 1 个带有合同名称的导出 “Microsoft.VisualStudio.Azure.Fabric.Shared.IShellService”但发现 0 在应用适用的约束之后。

我尝试使用控件修复 SDK 组件“Microsoft Azure Service Fabric 5.1.150.9590”、“Microsoft Azure Service Fabric SDK 2.1.150.9590”和“Microsoft Azure Service Fabric Tools for Visual Studio 2015 1.1.40531.2”面板“程序和功能”小程序。我已经卸载并重新安装了SDK,重新启动机器无济于事。

有什么想法吗?

【问题讨论】:

    标签: visual-studio-2015 azure-service-fabric


    【解决方案1】:

    按照以下步骤清除 Visual Studio 组件缓存有帮助:

    https://github.com/Codealike/Codealike-KnowledgeBase/blob/master/clear-visual-studio-component-cache.md

    On Visual Studio 2015
    
    1. Close Visual Studio (ensure devenv.exe is not present in the Task Manager)
    2. Delete the %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache directory
    3. Restart Visual Studio.
    

    【讨论】:

    • 谢谢 :) 正在寻找相同的东西。
    • 谢谢!经过几个小时的故障排除后发现了这个问题......这解决了我在升级 Azure SDK 后尝试加载现有服务结构项目时看到的问题。 “此项目与当前版本的 Visual Studio 不兼容”
    • 这也为我修复了 VS2017,我从所有 15.0_* 文件夹中清除了它。
    猜你喜欢
    • 2015-11-12
    • 1970-01-01
    • 1970-01-01
    • 2017-06-11
    • 2013-05-23
    • 2020-03-18
    • 2015-04-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多