NU1608 Detected package version outside of dependency constraint

67 views Asked by At

I'm getting this warning on a Service Fabric project:

NU1608: Detected package version outside of dependency constraint: Microsoft.ServiceFabric.AspNetCore.Abstractions 6.1.1390 requires Microsoft.ServiceFabric.Services (= 6.1.1390) but version Microsoft.ServiceFabric.Services 7.0.1001 was resolved.

The csproj file has no reference to Microsoft.ServiceFabric.AspNetCore.Abstractions, so I guess my first question is, how can I figure out what package depends on it.

1

There are 1 answers

0
Whit Waldo On

There is no Microsoft.ServiceFabric.Services version 7.0.1001 - my guess is that you're using Azure DevOps and it's picking up on and caching unlisted packages from NuGet. I just filed a bug report with Azure DevOps.

You'll note that version 6.1.1799 is the latest version available on NuGet. Downgrade to this version and I expect your issue will magically resolve as it'll no longer experience an expected version mismatch.