Search code examples
c#.netnuget-package.net-framework-versionvisual-studio-2017

Unable to add any nuget package in vs 2017


Am trying to add nuget package prism.core in vs 2017 and target framework is 4.6.1,its giving this error

Severity Code Description Project File Line Suppression State Error Failed to add reference to 'Microsoft.Practices.ServiceLocation'. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)

tried to install newtonsoft.json package, got this error

Severity Code Description Project File Line Suppression State Error Failed to add reference to 'Newtonsoft.Json'. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) 0

Not able to install any nuget package? is this is something to do with vs 2017?

enter image description here


Solution

  • After repairing the visual studio, it worked.