Ich habe ein vorhandenes ASP.NET-Projekt und es ist nicht in MVC. Wenn ich versuche, Hangire zu installieren, erhalte ich diesen Fehler.Kann Hangfire nicht zu meinem vorhandenen Projekt installieren
PM> Install-Package Hangfire
Attempting to gather dependency information for package 'Hangfire.1.5.8' with respect to project 'FYMAS', targeting '.NETFramework,Version=v4.0'
Attempting to resolve dependencies for package 'Hangfire.1.5.8' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Hangfire.1.5.8'
Resolved actions to install package 'Hangfire.1.5.8'
Adding package 'Newtonsoft.Json.5.0.1' to folder 'C:\Users\User\Desktop\hang\packages'
Added package 'Newtonsoft.Json.5.0.1' to folder 'C:\Users\User\Desktop\hang\packages'
Added package 'Newtonsoft.Json.5.0.1' to 'packages.config'
Successfully installed 'Newtonsoft.Json 5.0.1' to FYMAS
Install failed. Rolling back...
Package 'Hangfire.Core.1.5.8 : Newtonsoft.Json [5.0.0,), Owin [1.0.0,)' does not exist in project 'FYMAS'
Removed package 'Newtonsoft.Json.5.0.1' from 'packages.config'
Package 'Hangfire.Core.1.5.8 : Newtonsoft.Json [5.0.0,), Owin [1.0.0,)' does not exist in folder 'C:\Users\User\Desktop\hang\packages'
Removing package 'Newtonsoft.Json.5.0.1' from folder 'C:\Users\User\Desktop\hang\packages'
Removed package 'Newtonsoft.Json.5.0.1' from folder 'C:\Users\User\Desktop\hang\packages'
Install-Package : Could not install package 'Hangfire.Core 1.5.8'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package
does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Hangfire
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
ich owin mein Projekt mit Install-Package Owin
Befehl zu installieren versuchte, ist diese Installation Erfolg, aber wenn ich versuche, wieder zu installieren hanfire, bekam ich den gleichen Fehler. Ich habe versucht, eine ältere Version von Hangfire mit Install-Package HangFire -Version 1.4.6
zu installieren, bekam aber den gleichen Fehler.
dies die hangfire installiert, aber ich kann mit diesem [blog] nicht folgen zusammen (http://frankouimette.com/tutorial-installing-hangfire-without-asp-net-mvc/) –
Sie müssen Erstellen Sie die AccountStatusJob-Klasse und die Execute-Methode –