在 C# 类项目中,AssemblyCulture 有何用途?
在 C# 类项目中,有一个名为 AssemblyInfo.cs 的属性文件。该文件中包含一系列程序集属性,包括 AssemblyTitle
、AssemblyDescription
等,用于描述有关已编译项目的某些详细信息。其中之一是AssemblyCulture
。
我明白其他的用途,但是AssemblyCulture
用来描述什么?语言?货币?两者都有一点?
每当我看到这个属性时,它都是空白的。
Within a C# class project, there's the Properties file called AssemblyInfo.cs. Within this file are a series of assembly attributes including AssemblyTitle
, AssemblyDescription
, and so on, which are used to describe certain details about the compiled project. One of these is AssemblyCulture
.
I understand what the others are used for, but What is AssemblyCulture
used to describe? Language? Currency? A bit of both?
Whenever I've seen this property, it's been left blank.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
来自文档:
总结一下:该属性由框架在内部使用来标记当您向项目添加本地化资源时自动创建的附属程序集。您可能永远不需要手动将此属性设置为
""
以外的任何内容。From the documentation:
To summarize: This attribute is used internally by the framework to mark the satellite assemblies automatically created when you add localized resources to your project. You will probably never need to manually set this attribute to anything other than
""
.引用文档:
Quote from the documentation:
当我用谷歌搜索你的问题时,我从
本教程中得到了一个快速答案。它有一个小描述,我在下面提供,看起来您可以在其中指定本地化,但我不确定它为您的程序集做了多少工作。When I googled your question I came up with a quick answer from
this tutorial. It has a small description which I'm providing below and it looks like that's where you can specify localization but I'm not sure how much work it does for your assembly.