Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wont add dependencies because of missing service fabric packages

Starting a new empty .NET Core 2 class library i try to add any dependency with nuget i get this error

Error The local source 'C:\Program Files\Microsoft SDKs\Service Fabric\packages' doesn't exist.

But service fabric should have nothing to do with this solution . Also the solution builds succesfully

like image 466
Daarwin Avatar asked May 21 '19 20:05

Daarwin


3 Answers

I faced the same error.

There was service fabric installed but I decided to delete it. Then after that, this error started to appear.

All you have to do is create an empty packages folder

C:\Program Files\Microsoft SDKs\Service Fabric\packages
like image 125
Serg Avatar answered Oct 03 '22 05:10

Serg


In VS2019 remove Service Fabric's package source by going to:

Tools -> Options -> Nuget Package Manager\Package Sources

and unchecking the Microsoft Azure Service Fabric SDK option.

like image 36
Ian Gledhill Avatar answered Oct 03 '22 05:10

Ian Gledhill


I had this issue in VS 2019 despite uninstalling what I thought was all of Service Fabric long ago, and only using it in 2017. Adding the missing folder resolved the problem, although I don't know the root cause.

like image 29
Hillary Erin Avatar answered Oct 03 '22 07:10

Hillary Erin