How can I fix assembly version conflicts with JSON.NET after updating NuGet package references in a new ASP.NET MVC 5 project?

后端 未结 11 1627
粉色の甜心
粉色の甜心 2020-11-29 20:42

I created a new ASP.NET MVC 5 web project in VS 2013 (Update 1) then updated all NuGet packages. When I build the project, I get the following warning:

<
11条回答
  •  青春惊慌失措
    2020-11-29 21:31

    The final solution to your assembly redirect errors

    Okay, hopefully this should help resolve any (sane) assembly reference discrepancies ...

    1. Check the error.

    1. Check web.config after the assembly redirect. Create one if not exists.

    1. Right-click the reference for the assembly and choose Properties.

    1. Check the Version (not Runtime version) in the Properties table. Copy that.

    1. Paste into the newVersion attribute.

    1. For convenience, change the last part of the oldVersion to something high, round and imaginary.

    Rejoice.

提交回复
热议问题