开发者

Binding Redirect a namespace to a satellite assembly

开发者 https://www.devze.com 2023-03-16 12:11 出处:网络
I have an application t开发者_Go百科hat points to some resource files.I don\'t want to modify that application but I need to update the resource file.However, the resources are compiled as part of tha

I have an application t开发者_Go百科hat points to some resource files. I don't want to modify that application but I need to update the resource file. However, the resources are compiled as part of that application. The potentially good news is that they are in a separate namespace within the application.

What I did is copy the resources into a separate assembly and named the namespace exactly the same, and incremented the version to be 2.0.0.0. Is it possible to use the web.config to do a bindingRedirect to use the newer resource assembly?


I figured out how to do. You can create an satellite assembly that matches all the same Assembly metadata information (namespace included) and then overwrite the existing "culture-specific" DLL in the existing compiled application folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消