简体   繁体   中英

Visual Studio Versioning

We have a solution with multiple projects that all spit out exe files. We have a shared VersionAssemblyInfo.cs that has the following...

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

This works fine and all exe's are versioned with the correct major, minor and build number. However the Revision is always different. Now i understand why this is, but is there a way to get the final revision to always be the same if the solution is built in one go? I would still like to take advantage of the automatic incrementation. So i don't really want to have to hardcode it and change it all the time.

To keep the final revision stay the same, you just need to set clean build as false in Get sources build step and queue the build with private agent .

在此处输入图片说明

Then the revision always with the same value for different times of build.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM