[英]Assembly Name and Default Namespace
I have an application that uses localization
. 我有一个使用
localization
的应用程序。 It is ok until a new requirement raised. 在提出新要求之前是可以的。
Currently my App name is "MyAppName" and Default assembly is "MyAppName". 当前,我的应用程序名称为“ MyAppName”,默认程序集为“ MyAppName”。
Now I need to change the exe name to "My Application Name" and default namespace is "MyAppName". 现在,我需要将exe名称更改为“我的应用程序名称”,默认名称空间为“ MyAppName”。 I done it throught project->properties->Assembly Name.
我是通过project-> properties-> Assembly Name完成的。
Now I am getting exception like : 现在我得到像这样的异常:
'WpfLocalization.LocExtension' value cannot be assigned to property 'MinHeight' of object 'MyAPPName.MainWindow'. Could not find any resources appropriate for the specified culture or the neutral culture.
Make sure "My Application Name.Properties.Resources.resources" was correctly embedded or linked into assembly "My Application Name" at compile time, or that all the satellite assemblies required are loadable and fully signed. Error at object 'WpfLocalization.LocExtension' in markup file 'My Application Name;component/mainwindow.xaml'.
I tried : 我试过了 :
rebuild the localization DLL 重建本地化DLL
Change Assembly Name and Default name to another name (which is similar) : It works 将程序集名称和默认名称更改为另一个名称(相似): 有效
Please suggest what to do Thanks, 请建议该怎么做谢谢,
The issue solved : 问题解决了:
The things I done are : 我做的事情是:
1. Change the assembly name and/or namespace name in project -> properties
2. Localization DLL uses(assumes) assembly name as the default namespace.
Here we need to provide the namespace name.
3. Rebuild DLL and add reference to project.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.