覆盖从ASP.NET中的标准装配的资源 [英] Override a resource from standard assembly in ASP.NET
问题描述
我要重写从 System.ComponentModel.DataAnnotations
字符串为ASP.NET项目。我需要做一个卫星装配,具有自定义生成任务搞乱, Al.exe工具使用
等?就算是,我无法找到如何转换的.resx
到的.resources
将其输送到 Al.exe工具使用
。如果没有,在哪里放的.resx。
以及如何命名呢?
I want to override a string from a System.ComponentModel.DataAnnotations
for an ASP.NET project. Do I need to make a satellite assembly, messing with custom build tasks, al.exe
etc.? Even if yes, I couldn't find how to convert .resx
to .resources
to feed it to al.exe
. And if no, where to put the .resx.
and how to name it?
UPD:要清楚:我想用一个自定义的资源字符串,而不是一个从组件默认的资源。我并不想在使用该字符串中的每一个地方的变化。毕竟,仅仅存在覆盖它们的资源。
UPD: To make it clear: I wanted to use a custom resource string instead of one from the default resource from the assembly. I didn't want to make changes in the every place that uses that string. After all, the resources exist just for overriding them.
推荐答案
虽然这是奇怪的,尤其是对于熟悉开源本土化技术人员,不能建立一个卫星组装任何系统的组装,甚至是第三方签订1
While this is strange, especially for people familiar with open source localization technologies, one cannot build a satellite assembly for any system assembly or even a 3rd-party signed one:
如果你的主要部件使用强
命名,附属程序集必须是
使用相同的私钥签署
主组件。如果
公开/私有密钥对不匹配
主卫星之间
组件,你的资源将不
加载。
是否相同,可以自动完成,但没有卫星组装,还是个未知数,但我对此表示怀疑。
Whether the same is possible automatically, but without a satellite assembly, is unknown, though I doubt that.
这篇关于覆盖从ASP.NET中的标准装配的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!