我有一个简单的 winforms 应用程序,用于测试自动版本控制,我在属性下的 AssemlyInfo.cs 文件中指定了该自动版本控制。如何让它递增?
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
winform:
private void Form1_Load(object sender, EventArgs e)
{
lblMessage.Text = Class1.HelloTest();
string version = System.Windows.Forms.Application.ProductVersion;
this.Text = String.Format("My Application Version {0}", version);
}
最佳答案
注释掉
//[程序集:AssemblyFileVersion("1.0.0.0")]
关于c# - 为什么我的 winforms 应用程序中的自动版本控制没有增加?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60971140/