.NET Binding Redirection for Compilation

前端 未结 5 2027
灰色年华
灰色年华 2020-12-17 17:37

I\'m getting the following error when I try and compile a utility, which uses files that have been deployed to our client.

Assembly \'*A* version 2.0.

5条回答
  •  自闭症患者
    2020-12-17 18:13

    You can get around the compiler error by making sure that you wrap the types from assembly A in a way that they are not visible outside of assembly B you can then depend on assembly B, use A through B and use an bindingRedirect to make sure that assembly A loads the correct DLL version. Your mileage will vary, but it does work.

提交回复
热议问题