Assembly mismatch despite having assembly redirect and loading correct version

前端 未结 2 850
粉色の甜心
粉色の甜心 2021-02-14 03:08

My console app uses System.Net.Http.Formatting v5.1.0.0 that depends on Newtonsoft.Json v4.5.0.0. My app however includes v6.0.0.0 of Newtonsoft.Json (for other reasons).

<
2条回答
  •  失恋的感觉
    2021-02-14 03:27

    There is no evidence that your is in effect. You should see:

    LOG: Redirect found in application configuration file: 4.5.0.0 redirected to 6.0.0.0.
    LOG: Post-policy reference: Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
    

    There are no breadcrumbs in your question, but whatever you edited appeared to not have been D:\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe.Config. Odd drive letter. Beware of a project already having an App.config project item and you adding App1.config. Something like that.

提交回复
热议问题