Visual Studio automated build version number is incremented
Q: How do I use Visual Studio to automatically increment the build version number of my files?
A: In Visual Studio 2008 and above, this can be easily achieved using the AssemblyInfo.cs file.
[assembly: AssemblyVersion("1.0.0.0")]
with [assembly: AssemblyVersion("1.0.*")]
. [assembly: AssemblyFileVersion("1.0.0.0")]
. After removing the AssemblyFileVersion line, the compiler will automatically set the file version to the product version. This will cause both the build version number and the version number to be dynamically incremented. For example, you might see a version number like "1.0.3266.92689" where the last part represents the build number.
The above is the detailed content of How to Automate Build Version Increment in Visual Studio?. For more information, please follow other related articles on the PHP Chinese website!