auto increment the C# assembly version
Edit
I need to get the C# bin assembly's file path for a project, and then discovered a cool way that Visual Studio can auto increment the assembly version by itself !
In short, go to AssemblyInfo.cs
and change
to
(remove the AssemblyFileVersion line)
Cheers!
reference:
1. http://stackoverflow.com/questions/356543/can-i-automatically-increment-the-file-build-version-when-using-visual-studio
2. How can I auto increment the C# assembly version?
In short, go to AssemblyInfo.cs
and change
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
to
[assembly: AssemblyVersion("1.0.*")]
(remove the AssemblyFileVersion line)
Cheers!
reference:
1. http://stackoverflow.com/questions/356543/can-i-automatically-increment-the-file-build-version-when-using-visual-studio
2. How can I auto increment the C# assembly version?
auto increment the C# assembly version
Reviewed by DF
on
8:18:00 PM
Rating: