AssemblyVersion
(的AssemblyVersion)
Where other assemblies that reference your assembly will look.
(引用装配的其他装配体的外观。)
If this number changes, other assemblies have to update their references to your assembly! (如果此数字更改,其他程序集必须更新其对程序集的引用!)
The AssemblyVersion
is required. (AssemblyVersion
是必需的。)
I use the format: major.minor .
(我使用的格式为: major.minor 。)
This would result in: (这将导致:)
[assembly: AssemblyVersion("1.0")]
AssemblyFileVersion
(的AssemblyFileVersion)
Used for deployment.
(用于部署。)
You can increase this number for every deployment. (您可以为每个部署增加此数量。)
It is used by setup programs. (它由安装程序使用。)
Use it to mark assemblies that have the same AssemblyVersion
, but are generated from different builds. (使用它来标记具有相同AssemblyVersion
但是从不同构建生成的程序集。)
In Windows, it can be viewed in the file properties.
(在Windows中,可以在文件属性中查看它。)
If possible, let it be generated by MSBuild.
(如果可能,让它由MSBuild生成。)
The AssemblyFileVersion is optional. (AssemblyFileVersion是可选的。)
If not given, the AssemblyVersion is used. (如果没有给出,则使用AssemblyVersion。)
I use the format: major.minor.revision.build , where I use revision for development stage (Alpha, Beta, RC and RTM), service packs and hot fixes.
(我使用的格式为: major.minor.revision.build ,其中我使用修订版进行开发阶段(Alpha,Beta,RC和RTM),服务包和热修复。)
This would result in: (这将导致:)
[assembly: AssemblyFileVersion("1.0.3100.1242")]
AssemblyInformationalVersion
(AssemblyInformationalVersion)
The Product version of the assembly.
(装配的产品版本。)
This is the version you would use when talking to customers or for display on your website. (这是您与客户交谈或在您的网站上显示时使用的版本。)
This version can be a string, like ' 1.0 Release Candidate '. (这个版本可以是一个字符串,比如' 1.0 Release Candidate '。)
The Code Analysis will complain about it (CA2243) -- reported to Microsoft (not fixed in VS2013).
(代码分析会抱怨它(CA2243) - 向微软报告 (未在VS2013中修复)。)
The AssemblyInformationalVersion
is optional.
(AssemblyInformationalVersion
是可选的。)
If not given, the AssemblyFileVersion is used. (如果没有给出,则使用AssemblyFileVersion。)
I use the format: major.minor [revision as string] .
(我使用格式: major.minor [revision as string] 。)
This would result in: (这将导致:)
[assembly: AssemblyInformationalVersion("1.0 RC1")]