繁体   English   中英

程序集名称和默认命名空间

[英]Assembly Name and Default Namespace

我有一个使用localization的应用程序。 在提出新要求之前是可以的。

当前,我的应用程序名称为“ MyAppName”,默认程序集为“ MyAppName”。

现在,我需要将exe名称更改为“我的应用程序名称”,默认名称空间为“ MyAppName”。 我是通过project-> properties-> Assembly Name完成的。

现在我得到像这样的异常:

'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'.

我试过了 :

  1. 重建本地化DLL

  2. 将程序集名称和默认名称更改为另一个名称(相似): 有效

请建议该怎么做谢谢,

问题解决了:

我做的事情是:

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM