Assembly Binding Redirect to a lower version

后端 未结 4 1042
滥情空心
滥情空心 2020-12-16 14:36

I am trying to downgrade a NServiceBus dependency so instead of using 4.0.0.0 to use 2.5.0.0

I am trying with the following ways, none of which seem to work.

4条回答
  •  心在旅途
    2020-12-16 15:31

    According to MSDN: https://msdn.microsoft.com/en-us/library/eftw1fys(v=vs.110).aspx

    This value can specify an earlier version than oldVersion.

    referring to the newVersion attribute of bindingRedirect. Also in the "Remarks" section:

    You can also redirect from a newer version to an older version of the assembly.

    Their example is:

    
       
          
             
                
                
             
          
       
    
    

    I did notice it also mentions something about Explicit assembly binding redirection in an application configuration file requires a security permission, maybe that's affecting you as well?

提交回复
热议问题