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

时间:2014-04-24 12:42:20

标签: c# wpf visual-studio localization

我有一个使用localization的应用程序。只要提出新要求,就可以了。

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

现在我需要将exe名称更改为“My Application Name”,默认名称空间为“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. 将程序集名称和默认名称更改为其他名称(类似):工作正常

  3. 请建议做什么 谢谢,

1 个答案:

答案 0 :(得分:0)

问题解决了:

我做的事情是:

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.