The problem was with Nuget Package Manager Console
.If anyone comes across this problem, then try and update the Nuget Package Manager
version, worked in my case.
To update Nuget Package Manager
click on
Tools
-> Extensions and Updates
-> Updates
-> Visual Studio Gallery
-> Nuget Package Manager
.