Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not install NuGet package

Tags:

I am trying to add the Unity package to my solution, but I keep receiving the listed message:

Attempting to resolve dependency 'Unity (≥ 3.5.1404.0)'.

'Unity' already has a dependency defined for 'CommonServiceLocator'.

Any Idea how to fix this?

like image 372
Jaster Avatar asked Apr 25 '14 07:04

Jaster


People also ask

How do I force a NuGet package to Install?

Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.

How do I Install NuGet packages missing?

Enable package restore by choosing Tools > Options > NuGet Package Manager. Under Package Restore options, select Allow NuGet to download missing packages. In Solution Explorer, right click the solution and select Restore NuGet Packages.

How do I get NuGet package in Visual Studio 2017?

Starting in Visual Studio 2017, NuGet and the NuGet Package Manager are automatically installed with any . NET-related workloads. Install it individually by selecting the Individual components > Code tools > NuGet package manager option in the Visual Studio installer.


1 Answers

This problem arises with older version of nuget. Update nuget PM, 2.8.50313.46 is current version, Look for the latest for VS 2012

like image 95
Rao Ehsan Avatar answered Oct 20 '22 22:10

Rao Ehsan