Error while installing Hangfire with New get vs 2010

I’m getting the below error when I try to install Hangfire on my project in Visual Studio 2010

PM> Install-Package Hangfire
Attempting to resolve dependency ‘Hangfire.Core (≥ 1.1.1)’.
Attempting to resolve dependency ‘Owin (≥ 1.0)’.
Attempting to resolve dependency ‘Common.Logging (≥ 2.2.0)’.
Attempting to resolve dependency ‘Common.Logging.Core’.
Attempting to resolve dependency ‘Newtonsoft.Json (≥ 5.0.0)’.
Install-Package : External packages cannot depend on packages that target projects.
At line:1 char:16

  • Install-Package <<<< Hangfire
    • CategoryInfo : NotSpecified: (:slight_smile: [Install-Package], InvalidOperationException
    • FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I got it to work in VS2010, .NET 4.0 with a MVC4 using these nuget commands:

Install-Package Microsoft.Owin.Host.SystemWeb -Version 2.1.0
Install-Package HangFire -Version 0.9.1

0.9.1 is the last version that a supported 4.0

Also, you have to run with IIS & not the VS Development Server.