gpt4 book ai didi

c# - Service Fabric 服务调试问题

转载 作者:太空狗 更新时间:2023-10-29 21:37:35 25 4
gpt4 key购买 nike

我有 2 个 Service Fabric 服务,需要对其进行调试。这些服务相互通信。我正在使用:

VS 2017(update 7),  
.NET Framework 4.6.1,
Azure SDK 2.9.5.3,
Service Fabric Tools 2.0.20180124.2,
Service Fabric 6.1.456.9494,
Service Fabric SDK 3.0.456.9494

一切都很顺利,但在某些时候,当我尝试开始调试第二个服务时,我开始出现以下错误。我不明白为什么我会收到这些错误。(Google 绝对不会对这些错误产生任何结果)它们是:

1st error: Error MSB4064 The "ProjectReferencesWithConfiguration" parameter is not supported by the "GetServiceProjectReferences" task. Verify the parameter exists on the task, and it is a settable public instance property. \packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.5\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets 95

2nd error:Error MSB4063 The "GetServiceProjectReferences" task could not be initialized with its input parameters. \packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.5\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets 94

这是完整的场景:

  1. 一份 VS 中的一项服务(无论是哪一项)已成功启动,没有错误。
  2. 我试图在 VS 的另一个副本中启动第二个服务。在这次尝试中,我遇到了上面提到的错误。

为了纠正这种情况,我必须关闭有问题的 VS 副本并在新的 VS 副本中打开 ServiceFabric 服务项目,之后该服务将成功启动。不幸的是,所有的舞蹈都变得很烦人,因为它占用了很多时间。

如有任何帮助,我们将不胜感激。

最佳答案

我通过将 Nuget 包 Microsoft.VisualStudio.Azure.Fabric.MSBuild 从版本 1.6.4 升级到 1.6.5 解决了这个问题

之后还必须在 .sfproj 文件中手动将 1.6.4 更改为 1.6.5,因为 Nuget 包管理器不会自动执行此操作。

关于c# - Service Fabric 服务调试问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49033550/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com