如何最好地使用文件版本和装配版本? [英] How best to use File Version and Assembly Version?
问题描述
在.NET中有建设项目时,文件版本和装配版本两种版本编号。你如何使用这些数据?让他们一样吗?自动递增,但是手动改变其他?
In .NET there are two version numbers available when building a project, File Version and Assembly Version. How are you using these numbers? Keeping them the same? Auto-incrementing one, but manually changing the other?
还有什么关于 AssemblyInformationalVersion
属性?
我已经发现了这种支持Microsoft知识库(KB)文章,提供一些帮助:如何使用程序集版本和程序集文件版本。
I'd found this support Microsoft Knowledge Base (KB) article that provided some help: How to use Assembly Version and Assembly File Version.
推荐答案
在一个场景,我有多个文件组件(即1 exe文件和5个动态链接库)我会使用不同的文件版本为每个,但同样的程序集版本所有这些,让你知道哪些exe的每一个动态链接库中去。
In a scenario where I have multiple file assemblies (i.e. 1 exe and 5 dlls) I will use a different file version for each, but the same assembly version for all of them, allowing you to know which exe each of the dlls go with.
这篇关于如何最好地使用文件版本和装配版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!