Version conflict caused by Microsoft.NET.Sdk.Functions

后端 未结 4 1129
悲&欢浪女
悲&欢浪女 2020-12-30 20:09

I\'m having issues with a project referencing 2 packages that then reference Newtonsoft.Json but both at different versions. I\'m using the nuget package of Refit

4条回答
  •  粉色の甜心
    2020-12-30 20:56

    In Azure the functions runtime loads a spececific (currently 11.0.1 in functions v2, 9.0.1 in functions v1) version of the Newtonsoft.Json before your function library gets loaded by the queue binding.

    Any workarounds applied to make it compile will cause horrible to diagnose runtime failures if you use any function that is not binary compatible with [11.0.1] (eg, any of the new attributes used in v12) .

提交回复
热议问题