简体   繁体   English

Service Fabric服务调试问题

[英]Service Fabric services debugging issues

I have 2 Service Fabric services, which I need to debug. 我有2个Service Fabric服务,我需要调试。 Those services communicate with each other. 这些服务相互通信。 I am using: 我在用:

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

Everything was going alright, but at some point I've started to get following errors, when I try to start debugging 2nd service. 一切都很顺利,但在某些时候,当我尝试开始调试第二个服务时,我已经开始出现以下错误。 I don't understand why I am getting those errors.(Google produces absolutely nothing on those errors) Here they are: 我不明白为什么我会收到这些错误。(Google对这些错误绝不产生任何结果)这里他们是:

1st error: Error MSB4064 The "ProjectReferencesWithConfiguration" parameter is not supported by the "GetServiceProjectReferences" task. 第一个错误:错误MSB4064“GetServiceProjectReferences”任务不支持“ProjectReferencesWithConfiguration”参数。 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 \\ 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. 第二个错误:错误MSB4063无法使用其输入参数初始化“GetServiceProjectReferences”任务。 \\packages\\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.5\\build\\Microsoft.VisualStudio.Azure.Fabric.Application.targets 94 \\ packages \\ Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.6.5 \\ build \\ Microsoft.VisualStudio.Azure.Fabric.Application.targets 94

Here is complete scenario: 这是完整的场景:

  1. One of the services(does not matter which one) in one copy of VS has started successfully without errors. VS的一个副本中的一个服务(无关紧要)已成功启动而没有错误。
  2. I've trying to start 2nd service in another copy of VS. 我试图在VS的另一个副本中启动第二个服务。 And during this attempt I'm getting errors I've mentioned above. 在这次尝试中,我遇到了上面提到的错误。

To remedy the situation I have to close offending copy of the VS and open ServiceFabric service project in new VS copy and after that service will start successfully. 为了解决这种情况,我必须关闭VS的违规副本并在新的VS副本中打开ServiceFabric服务项目,然后该服务将成功启动。 Unfortunately all that dancing are getting quite annoying because it's taking up A LOT OF time. 不幸的是,所有跳舞都变得非常烦人,因为它占用了很多时间。

Any help would be appreciated. 任何帮助,将不胜感激。

I solved this by upgrading Nuget package Microsoft.VisualStudio.Azure.Fabric.MSBuild from version 1.6.4 to 1.6.5 我通过将Nuget包Microsoft.VisualStudio.Azure.Fabric.MSBuild从1.6.4升级到1.6.5来解决这个问题

After that also had to manually change 1.6.4 to 1.6.5 in the .sfproj file, as Nuget package manager did not do that automatically. 之后还必须在.sfproj文件中手动更改1.6.4到1.6.5,因为Nuget包管理器没有自动执行此操作。

It looks like updating Service Fabric SDK to 467 version did the the trick. 看起来像将Service Fabric SDK更新到467版本就可以了。 I've been working all day today and didn't see pesky error messages during services start up. 我今天一直在工作,在服务启动期间没有看到讨厌的错误消息。 Now I have in Control Panel\\Programs and Features following lines: 现在我在控制面板\\程序和功能中有以下几行:

Microsoft Azure Service Fabric 6.1.467.9494 Microsoft Azure Service Fabric 6.1.467.9494
Microsoft Azure Service Fabric SDK 6.1.467.9494 Microsoft Azure Service Fabric SDK 6.1.467.9494

I had the same issue after upgrading Visual Studio to version 15.6.4 (can't remember what my previous version was). 将Visual Studio升级到版本15.6.4后我遇到了同样的问题(不记得我之前的版本是什么)。 Tried altumano's solution of updating Microsoft.VisualStudio.Azure.Fabric.MSBuild and ran into other errors. 试过altumano的更新Microsoft.VisualStudio.Azure.Fabric.MSBuild的解决方案并遇到其他错误。

Solution that appears to have worked for me is to upgrade Visual Studio again to version 15.6.6. 似乎对我有用的解决方案是将Visual Studio再次升级到15.6.6版。 I still plan to update Service Fabric SDK to a more recent version, but so far this Visual Studio update alone has solved my issue. 我仍然计划将Service Fabric SDK更新到更新版本,但到目前为止,仅Visual Studio更新已经解决了我的问题。

将Visual Studio升级到版本15.6.7,将Service Fabric SDK升级到版本3.1.269似乎可行。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM