Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Asp.Net Core MVC Jquery project - NuGet restore error #2385


User avatar
0
exlnt created

I just downloaded the Asp.Net Core MVC version of my ASPNETZERO solution. When I open the solution, I am getting the below error during NuGet package restore.

I did find another posting on this same issue and I forced HangFire 1.6.8 in all three projects, but still the errors remain.

Errors in \ASPNETZERO\Ops\src\Ops.Web.Mvc\Ops.Web.Mvc.xproj
    Version conflict detected for Hangfire.Core.
     Ops.Web.Mvc (>= 1.0.0) -> Ops.Web.Core (>= 1.0.0) -> Abp.HangFire (>= 1.2.2) -> Hangfire.Core (>= 1.6.8)
     Ops.Web.Mvc (>= 1.0.0) -> Ops.Web.Core (>= 1.0.0) -> Hangfire.SqlServer (>= 1.6.7) -> Hangfire.Core (= 1.6.7).
Errors in \ASPNETZERO\Ops\src\Ops.Web.Host\Ops.Web.Host.xproj
    Version conflict detected for Hangfire.Core.
     Ops.Web.Host (>= 1.0.0) -> Ops.Web.Core (>= 1.0.0) -> Abp.HangFire (>= 1.2.2) -> Hangfire.Core (>= 1.6.8)
     Ops.Web.Host (>= 1.0.0) -> Ops.Web.Core (>= 1.0.0) -> Hangfire.SqlServer (>= 1.6.7) -> Hangfire.Core (= 1.6.7).
Errors in \ASPNETZERO\Ops\src\Ops.Web.Core\Ops.Web.Core.xproj
    Version conflict detected for Hangfire.Core.
     Ops.Web.Core (>= 1.0.0) -> Abp.HangFire (>= 1.2.2) -> Hangfire.Core (>= 1.6.8)
     Ops.Web.Core (>= 1.0.0) -> Hangfire.SqlServer (>= 1.6.7) -> Hangfire.Core (= 1.6.7).

Can you help me resolve these errors? Thanks!


9 Answer(s)
  • User Avatar
    0
    joshyates created

    I opened the NuGet Package manager and updated everything. That cleaned up almost all the errors. The only one I had to manual fix was: jquery.sparkline.js

    v2.1.2 <a class="postlink" href="http://omnipotent.net/jquery.sparkline/">http://omnipotent.net/jquery.sparkline/</a>

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks for sharing your solution. What was the problem with jquery.sparkline ? Maybe, we need to fix something in our template.

    Thanks.

  • User Avatar
    0
    joshyates created

    It was not in the dist folder, so I manually added it.

  • User Avatar
    0
    exlnt created

    <cite>ismcagdas: </cite> Hi,

    Thanks for sharing your solution. What was the problem with jquery.sparkline ? Maybe, we need to fix something in our template.

    Thanks.

    Can you help me resolve my error? Thanks!

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @JoshYates, we will check this as well.

    @exlnt, Have you tried to update HangFire package to 1.6.8 ?

  • User Avatar
    0
    exlnt created

    Yes, If you read my OP, I forced 1.6.8 and still I am getting the errors.

  • User Avatar
    0
    exlnt created

    Can you please help me with this error?

    Thanks!

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Even if you get this error, the project should work, do you have any build or runtime error ? We will fix this for the next versions, please follow <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/51">https://github.com/aspnetzero/aspnet-ze ... /issues/51</a>.

  • User Avatar
    0
    exlnt created

    Ok, you were right. This time I was not stopped with a build/compile error and was able to run the app.

    Thanks!