Base solution for your next web application
Open Closed

Hangfire version conflict #2342


User avatar
0
tiestop created

I'm using Visual Studio Team Services Builds and I'm getting a Hangfire version conflict error when doing a Nuget Package Restore. I have gotten the same error before when building with Visual Studio but I'm not getting it anymore and I have not changed anything. It seems that there is a version conflict. I have pasted part of the logs below.

I'm using the DotNet Core and Angular 2.x template. (I have only changed the connection strings)

Restore failed in 15477ms. Version conflict detected for Hangfire.Core. MWise.MPointLoyalty.Web.Host (>= 1.0.0) -> MWise.MPointLoyalty.Web.Core (>= 1.0.0) -> Abp.HangFire (>= 1.2.2) -> Hangfire.Core (>= 1.6.8) MWise.MPointLoyalty.Web.Host (>= 1.0.0) -> MWise.MPointLoyalty.Web.Core (>= 1.0.0) -> Hangfire.SqlServer (>= 1.6.7) -> Hangfire.Core (= 1.6.7). Errors in D:/a/1/s/Server/src/MWise.MPointLoyalty.Web.Host/project.json Dotnet command failed with non-zero exit code: 1. Version conflict detected for Hangfire.Core. MWise.MPointLoyalty.Web.Host (>= 1.0.0) -> MWise.MPointLoyalty.Web.Core (>= 1.0.0) -> Abp.HangFire (>= 1.2.2) -> Hangfire.Core (>= 1.6.8) MWise.MPointLoyalty.Web.Host (>= 1.0.0) -> MWise.MPointLoyalty.Web.Core (>= 1.0.0) -> Hangfire.SqlServer (>= 1.6.7) -> Hangfire.Core (= 1.6.7). C:\Program Files\dotnet\dotnet.exe restore D:/a/1/s/Server/test/MWise.MPointLoyalty.Tests/project.json


2 Answer(s)
  • User Avatar
    0
    tiestop created

    I have solved it by updating the HangFire package to 1.6.8 using the Package Manager. Might be an idea to include in the documentation that a Package Restore is not enough but that we also need to update packages

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thank you for sharing your solution. Updating nuget packages does not always good, because there might be tight dependencies to older versions.

    But we will consider this for Hangfire.

    Thanks again.