HangfireIO / HangfireIO/Hangfire

asp.net core dependency on System.Xml.Linq

Open
#829 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

Hi,

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

however, this package is not supported on .net core

![image](https://cloud.githubusercontent.com/assets/5426370/23720655/8bc89b8e-043f-11e7-8307-bb390ba78945.png)

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)```

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the Hangfire package dependency declarations and reproduce the reported failure with a netcoreapp1.1 project using the xUnit test runner. Check whether the System.Xml.Linq dependency is compatible with .NET Core; done means the packages install and test discovery completes without the missing-assembly error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.