Can anyone help me get past this Service Fabric cluster build error?

BlissedEL 21 Reputation points
2020-09-15T10:43:44.467+00:00

Hi,

I have not been able to figure out which value it refers to being null.

This is the error message when debugging the solution.

"Severity Code Description Project File Line Suppression State
Error MSB4018 The "GetServiceProjectReferences" task failed unexpectedly.
System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at Microsoft.VisualStudio.Azure.Fabric.BuildTasks.ServiceModelServiceSlim.GetPrimaryCodePackage(ServiceManifestSlim serviceManifest)
at Microsoft.VisualStudio.Azure.Fabric.BuildTasks.GetServiceProjectReferences.SetMetadataForProjectReferences(PackageBehaviorOptions packageBehavior)
at Microsoft.VisualStudio.Azure.Fabric.BuildTasks.GetServiceProjectReferences.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() ApplicationName C:\Users\xxx\xxx\packages\Microsoft.VisualStudio.Azure.Fabric.MSBuild.1.7.1\build\Microsoft.VisualStudio.Azure.Fabric.Application.targets 106"

It refers to this line:

<GetServiceProjectReferences ProjectReferences="@(ProjectReference)"
ProjectReferencesWithConfiguration="@(ProjectReferenceWithConfiguration)"
ServicePackageRootFolder="$(ServicePackageRootFolder)"
ApplicationManifestPath="$(ApplicationManifestFilePath)"
IncludeInPackagePaths="@(IncludeInPackagePaths)"
PackageBehavior="$(PackageBehavior)"
Configuration="$(Configuration)">

Any suggestion appreciated. I've hit a complete halt and am still learning basic stuff.

Thanks,
El

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
264 questions
0 comments No comments
{count} votes

Accepted answer
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee
    2020-09-15T13:45:22.927+00:00

    @BlissedEL Can you please check this GitHub thread and see if the workaround provided helped you out with your issue.

    You can refer to this thread as well to see if your issue co-relate with the mentioned issue on Git.

    Hope it helps!!!

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.