这段代码演示了C#如何通过修改AssemblyInfo.cs文件实现自动版本号
// Modify the AssemblyVersion line in the
// "AssemblyInfo.cs" file:
// Add a "*" to the section you want to increase automatically
[assembly: AssemblyVersion("0.9.0.*")]
// Remove this if you add the star
//[assembly: AssemblyFileVersion("1.0.0.0")]
// In your windows application you can access the current version
// like this:
MessageBox.Show(this.ProductVersion);
// "this" contains the the current "Form" object.
