Automatically update version number

前端 未结 7 1376
南笙
南笙 2020-11-28 02:33

I would like the version property of my application to be incremented for each build but I\'m not sure on how to enable this functionality in Visual Studio (2005/2008). I ha

7条回答
  •  旧巷少年郎
    2020-11-28 02:57

    If you want an auto incrementing number that updates each time a compilation is done, you can use VersionUpdater from a pre-build event. Your pre-build event can check the build configuration if you prefer so that the version number will only increment for a Release build (for example).

提交回复
热议问题