Can I automatically increment the file build version when using Visual Studio?

后端 未结 25 2855
-上瘾入骨i
-上瘾入骨i 2020-11-22 14:32

I was just wondering how I could automatically increment the build (and version?) of my files using Visual Studio (2005).

If I look up the properties of sa

25条回答
  •  一整个雨季
    2020-11-22 15:29

    As of right now, for my application,

    string ver = Application.ProductVersion;
    

    returns ver = 1.0.3251.27860

    The value 3251 is the number of days since 1/1/2000. I use it to put a version creation date on the splash screen of my application. When dealing with a user, I can ask the creation date which is easier to communicate than some long number.

    (I'm a one-man dept supporting a small company. This approach may not work for you.)

提交回复
热议问题