Hangfire: asp.net core dependency on System.Xml.Linq

Created on 8 Mar 2017  路  3Comments  路  Source: HangfireIO/Hangfire

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:

```------ Discover test started ------
[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 


```

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)

Most helpful comment

Is there currently any workaround for this?

All 3 comments

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

Is there currently any workaround for this?

I have the same problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dbones picture dbones  路  3Comments

plmwong picture plmwong  路  3Comments

nigel-dewar picture nigel-dewar  路  3Comments

jeffsugden picture jeffsugden  路  4Comments

nsnail picture nsnail  路  3Comments