Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 489
Nick Avatar asked Sep 10 '16 18:09

Nick


2 Answers

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

Worked for me.

like image 109
Noman Chali Avatar answered Nov 11 '22 20:11

Noman Chali


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.

like image 1
Nick Avatar answered Nov 11 '22 20:11

Nick