What is the best way to use assembly versioning attributes?

后端 未结 8 993
灰色年华
灰色年华 2021-02-04 08:35

The AssemblyVersion and AssemblyFileVersion attributes are the built-in way of handling version numbers for .NET assemblies. While the framework provides the ability to have the

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-04 09:35

    At a previous job, where we used Subversion, I had a nant script run about ccnet to extract the repository version and used that as the final number.

    At this job, we use VSS (shutter), so that's not really an option, so we have a policy of updating it manually, with the following guidelines:

    • Major : significant ( > 25%) changes or addition in functionality or interface.
    • Minor : small changes or additions in functionality or interface.
    • Build : minor changes that break the interface.
    • Revision: fixes to a build which do not change the interface.

    We also keep the Assembly & the File versions in sync. The Assembly version can be easily read programmatically, while the file version can be displayed as a column in Details mode in Windows Explorer.

提交回复
热议问题