Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Service Fabric services debugging issues

I have 2 Service Fabric services, which I need to debug. 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:

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

Here is complete scenario:

  1. One of the services(does not matter which one) in one copy of VS has started successfully without errors.
  2. I've trying to start 2nd service in another copy of 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. Unfortunately all that dancing are getting quite annoying because it's taking up A LOT OF time.

Any help would be appreciated.

like image 633
fatherOfWine Avatar asked Feb 28 '18 15:02

fatherOfWine


1 Answers

I solved this by upgrading Nuget package Microsoft.VisualStudio.Azure.Fabric.MSBuild from version 1.6.4 to 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.

like image 79
altumano Avatar answered Sep 20 '22 02:09

altumano