The Chairman
The Chairman

Reputation: 7187

Why can't I install a NuGet package from command line

Currently we're evaluating NuGet so I'm an absolute newbie to the subject. Just to get into it, I tried to install a package from command line as most simple task I could imagine:

nuget install NUnit

Nothing fancy so far. But this is the response I'm getting:

Could not load file or assembly 'System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

I already checked, I have access to default package repository:

nuget list NUnit

That returns a number of packages including the desired NUnit 2.5.10.11092.

NuGet version is 1.4.20615.182

Upvotes: 1

Views: 838

Answers (1)

Jesus Ramos
Jesus Ramos

Reputation: 23266

What version of the .NET runtime do you have? You need .NET 4.0 for NUnit and some other packages in NuGet.

Upvotes: 1

Related Questions