Avoid assembly reference problems generally

前端 未结 1 1721
南旧
南旧 2021-01-16 22:06

I\'ve searched a lot but wasn\'t able to find a solution yet.

We have a lot of programs for our clients with shared libs (dlls) in one directory. But if one lib gets

1条回答
  •  春和景丽
    2021-01-16 22:41

    What about assembly binding redirection - https://msdn.microsoft.com/en-us/library/433ysdt1(v=vs.110).aspx (one more msdn link) ?

    You can specify in the config redirection to a new version, so it wont require recompile. But if signature of classes\methods that you are using will be changed - then it will throw an exception anyway.

    ASP.Net MVC uses this approach to specify redirection to a new version of MVC:

    
        
            
                
                
            
            
                
                
            
        
    
    

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