HangfireIO / Hangfire

An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
https://www.hangfire.io
Other
9.38k stars 1.7k forks source link

asp.net core dependency on System.Xml.Linq #829

Open JvanderStad opened 7 years ago

JvanderStad commented 7 years ago

Hi,

The Hangfire packages have a dependency on System.Xml.Linq

however, this package is not supported on .net core

image

And because this dll is not available, I get an error on the xUnit.net testrunner:

[xUnit.net 00:00:00.8776462]   Discovering: tests
[xUnit.net 00:00:01.0764595]   Discovered:  tests
An exception occurred while test discoverer 'VsTestRunner' was loading tests. Exception: Could not load file or assembly 'System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
========== Discover test finished: 15 found (0:00:01,6077412) ==========

If I add this to my my csproj file

<PackageReference Include="System.Xml.Linq" Version="3.5.21022.801" />

it will fail C:\Program Files\dotnet\sdk\1.0.1\NuGet.targets(97,5): error : Package System.Xml.Linq 3.5.21022.801 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package System.Xml.Linq 3.5.21022.801 supports: net20 (.NETFramework,Version=v2.0)

burningice2866 commented 7 years ago

I suppose the way forward would be for Hangfire to depend on .Net Standard which should ensure portability between Full Framework and .Net Core.

frmokoena commented 7 years ago

Is there currently any workaround for this?

ErikSchierboom commented 7 years ago

I have the same problem.