Search code examples
asp.net-core-2.0azure-service-fabric

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


Solution

  • 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