Nick
Nick

Reputation: 121

Automapper installation from nuget problems

After installing automapper 5.1.1 by Jimmy Bogard from NuGet on my class library project I've got the next issue: no one of other packages such as Entity Framework, Ninject cannot be installed. The error message that I've got is:

"An error occurred while retrieving package metadata for 'AutoMapper.5.1.1' from source 'c:\users\username\documents\visual studio 2015\Projects\Solution1\packages'"

Also I cannot uninstall the Automapper package - every time I'm trying it I'm getting about the next:

"Object reference does not point to an object instance."

I'm using the Visual Studio 2015.

How to resolve this problem?

Upvotes: 11

Views: 3076

Answers (2)

Noman Chali
Noman Chali

Reputation: 330

Update nuget package manager Tools>Extensions and Updates>Updates>Visual Studio Gallery> update nuget package manager

Worked for me.

Upvotes: 12

Nick
Nick

Reputation: 121

I've got a solution - I installed update 3 on my VS 2015 and after that the problem has gone. But I still have no idea why I had that problem.

Upvotes: 1

Related Questions