3
votes

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

1
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example.TomTom
No. Installing NuGet packages with VS2017 works just fine.Quality Catalyst
do you know why this message is coming "Library not registered", it used work fine before, now seeing all these errors.GANI
@TomTom its not debugging help, this is first time am seeing this behavior while installing nuget packages.GANI
@JohnPeters after repairing the visual studio, it workedGANI

1 Answers

8
votes

After repairing the visual studio, it worked.