c# - 为什么我的 winforms 应用程序中的自动版本控制没有增加?

标签 c# winforms

我有一个简单的 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/

相关文章:

c# - 带有选中默认值的复选框的 DataGridView

c# - MVVM:VM 对象应该直接公开 M 对象,还是仅通过委托(delegate)给 M 的 getter 的 getter 公开?

c# - IIS中回收应用程序池时,是否调用了Application_End?

c# - 在 C# 中处理退出无限循环的正确方法

c# - 如何在 WinForms 中制作自动滚动的多行文本框?

vb.net - 多选列表框

c# - petapoco 可以处理连接和查询生成的列吗?

c# - 具有依赖属性的 asp.net Web API 中的模型验证

c# - 处理Json时如何修复循环引用错误

.net - 如何在 TreeView 外部绘制 TreeView 节点+/-按钮?