Binding redirect problem in .net

后端 未结 4 1131
有刺的猬
有刺的猬 2020-12-03 17:48

I have a class library called \"MyAssembly\" that is internally referencing a.dll, b.dll of version 3.1.1.0; I have build the project which outputed MyAssembly.dll. On a dif

4条回答
  •  天涯浪人
    2020-12-03 18:05

    You are using MyAssembly in your web application. The binding redirect will be used for this Assembly and not the assemblies which MyAssembly uses. Check the manifest for the MyAssembly.dll, it should be referring to the 3.1.1.0 versions of a.dll, hence the compiler error is shown. Build the MyAssembly with referring to a.dll of version 4.0.0.0 and then use the MyAssembly in your web application. This will work.

提交回复
热议问题