Automatic assembly version number management in VS2008

前端 未结 7 1868
广开言路
广开言路 2020-12-09 05:11

I have a VS2008 project written in c# with a number of assemblies. I\'d like to have a simple way of managing the version numbers between all of the different assemblies and

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 05:49

    using System.Reflection; [assembly : AssemblyVersion("1.2.3.*")]

    Just a comment on this, the autogenerated version number cycles. So if you're looking to be able to version such that a build yesterday has a version 1.2.3.X where X < X a build today then this isn't the way to go.

    To achieve this use

    [assembly : AssemblyVersion("1.2.*")]
    

    This will get you version 1.2.X.Y where the combination of X.Y is bigger today than it is yesterday. I'm guessing X.Y are a function of date and time respectively

提交回复
热议问题