Base solution for your next web application
Open Closed

VS 15.3 and Hangfire build errors #3738


User avatar
0
godrunner created

Greetings! I was a developer for many years and just getting back into it, so I have some catching up to do, so do forgive me if this is something obvious I am missing.

I have been using Visual Studio 15.2 with ASP.Net Zero Core/MVC/Jquery and everything was going well. I upgraded to VS 15.3 and now I get several "Hangfire.Core" errors such as this when I compile. So, I guess there is obviously a dependency change/conflict. I need a bit more practice at resolving something like this. My guess is VS 15.3 updated some things that would have been best left alone for now.

That is one thing that makes me nervous seeing how everything now generally speaking with web applications is SO dependent on so many other technologies, it makes on wonder how easy it would be to break a production application, or should I say, how hard it would be to end up with an unstable app that is not easily upgradeable.

Greg

Warning NU1603 Hangfire.Core 1.6.14 depends on Newtonsoft.Json (>= 5.0.0) but Newtonsoft.Json 5.0.0 was not found. An approximate best match of Newtonsoft.Json 5.0.1 was resolved. Sys7.CharityCore.Web.Core D:...\4.3.1...\src\Sys7.CharityCore.Web.Core\Sys7.CharityCore.Web.Core.csproj 1


5 Answer(s)
  • User Avatar
    0
    godrunner created

    BTW, that same thing happens with any version I have of .NetZero.

  • User Avatar
    0
    ervingayle created

    I had a similar issue this week, potentially from my creation of the 4.3 .net core build. When I went to manage NuGet packages for the solution, Newtonsoft.Json was not installed. I added it for Web.Core, Web.Host and Web.Mvc and the error went away. You can try this and see if it resolves the issue for you.

  • User Avatar
    0
    godrunner created

    Thank you. That makes sense.

    Are you refering to actual .JSON file that is missing or the entire package? It seems the package is installed, however I do not see a newtonsoft.json file anywhere or an example of what should actually be in one on the net. If this is what is needed, could someone copy and paste the contents here please? Thanks!

  • User Avatar
    0
    ervingayle created

    I am referring to the actual package, its name is Newtonsoft.Json. It is at version 10.0.3 in my solution.

    When you go to NuGet package manager do you see Newtonsoft.Json listed as installed for the right projects in your solution? I saw the dependency resolved in the solution so I thought it was some other error because it appears installed but when I went to package manager it was not listed there. After installing as I mentioned before the warning went away.

    If you do see Newtonsoft.Json in package manager then you must have another issue.

  • User Avatar
    0
    godrunner created

    Hey, thanks ervingayle. I will give that a shot!!!