使用MEF动态加载WPF DLL时出现本地化问题 [英] Localisation issue while dynamically loading the WPF DLLs using MEF

查看:134
本文介绍了使用MEF动态加载WPF DLL时出现本地化问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试动态加载DLL,并且遇到以下问题:

I am trying to dynamically load DLLs and I am facing the following issues:

  1. 动态加载的DLL中的资源不起作用.它选择的是中性的英语文化,没有其他.resx文件被调用.

  1. The Resources in the dynamically loaded DLLs are not working. It is picking the neutral culture which is English, and no other .resx files are getting called.

我无法在动态加载的DLL中调用WCF服务.

I am unable to call a WCF service in the dynamically loaded DLLs.

对于2)我有一个解决方法,但是对于1)我仍然被困住.

For 2) I have a work around but for 1) I am still stuck.

我正在使用的技术是. Net 4.0(带有MEF)

The technology i am using is. Net 4.0(with MEF)

推荐答案

我找到了1)的替代解决方案. 只是我的错误,资源DLL是从错误的路径中提取的.

I found an alternate solution for 1). It was my mistake only, the resources DLLs were being picked from the wrong path.

这篇关于使用MEF动态加载WPF DLL时出现本地化问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆