简体   繁体   English

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

[英]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 : 我试过了 :

  1. rebuild the localization DLL 重建本地化DLL

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

相关问题 如何在C#中通过其程序集名称/默认命名空间获取程序集 - How to get Assembly by its Assembly Name/ Default Namespace in C# 动态更改名称空间和程序集名称 - Dynamically change namespace and assembly name 命名空间字符串中的程序集 - Assembly name from namespace string 更改项目的默认名称空间和程序集名称。 它会影响引用它的项目吗 - Change in default namespace and assembly name of a project. Does it affect project which reference it 类型或名称空间名称在名称空间中不存在“是否缺少程序集引用?” - The type or namespace name does not exist in the namespace ''are you missing an assembly reference ?" 命名空间中不存在类型或命名空间名称(您是否缺少程序集引用?) - The type or namespace name does not exist in the namespace (are you missing an assembly reference?) 命名空间还是程序集? - Namespace or Assembly? 在全局命名空间中找不到类型或命名空间名称“”Namespace“(您是否缺少程序集引用?) - The type or namespace name '“Namespace”' could not be found in the global namespace (are you missing an assembly reference?) 在全局名称空间中找不到类型或名称空间名称“名称空间”(您是否缺少程序集引用?) - The type or namespace name '“Namespace”' could not be found in the global namespace (are you missing an assembly reference?) 缺少程序集引用和/或指令“找不到类型或命名空间名称” - Missing assembly references and/or directives “The type or namespace name could not be found”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM