Why is a “bindingRedirect” added to the app.config file after adding the Microsoft.Bcl.Async package?

后端 未结 2 1294
轻奢々
轻奢々 2021-02-11 12:29

I was wondering why nuget added the following code to my applications app.config file, after installing the Microsoft.Bcl.Async:



        
2条回答
  •  伪装坚强ぢ
    2021-02-11 13:10

    The assemblies Microsoft.Threading.Tasks and Microsoft.Threading.Tasks.Extensions are still referencing v1.5.11.0 of System.Runtime and System.Threading.Tasks.

    Without the bindingRedirect, the Microsoft.* assemblies would try to load an old version of the System.* assemblies, which would fail.

提交回复
热议问题