Unable to add any nuget package in vs 2017

4

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

c#
.net
nuget-package
.net-framework-version
visual-studio-2017
asked on Stack Overflow Jun 1, 2017 by GANI • edited Jun 2, 2017 by GANI

1 Answer

8

After repairing the visual studio, it worked.

answered on Stack Overflow Jun 7, 2017 by GANI

User contributions licensed under CC BY-SA 3.0