Can I tell bindingRedirect to always use the latest available version?

后端 未结 1 1054
陌清茗
陌清茗 2021-02-07 04:55

Having an ASP.NET application there are several entries in the Web.Config file in this format:



        
相关标签:
1条回答
  • 2021-02-07 05:47

    Unfortunately, the answer to this is no. See the bindingRedirect element on MSDN.

    To quote:

    oldVersion: Required attribute.

    Specifies the version of the assembly that was originally requested. The format of an assembly version number is major.minor.build.revision. Valid values for each part of this version number are 0 to 65535.

    You can also specify a range of versions in the following format: n.n.n.n - n.n.n.n

    newVersion: Required attribute. Specifies the version of the assembly to use instead of the originally requested version in the format: n.n.n.n

    This value can specify an earlier version than oldVersion.

    0 讨论(0)
提交回复
热议问题