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")]
赢形式:
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);
}
解决方案
注释掉
//[assembly: AssemblyFileVersion("1.0.0.0")]
推荐阅读
- python - UDP 客户端从服务器 Python 发送和接收数据
- mongodb - mongoimport 套接字意外关闭
- azure-mysql-database - Azure“应用程序中的MySQL”尝试以访问权限禁止的方式访问套接字
- vbscript - VBA Edge 在 ReadyState 上给出了不确定的错误
- css - 允许下拉菜单溢出 div 并根据需要扩展
- javascript - 如何将变量的最新值传递给函数 ReactJS
- julia - 如何只为一个而不是两个轴设置次要刻度线的数量?
- html - 无法在 URL 中加载带有子路径的 Angular 样式
- javascript - 如何使用生成的id从js中的每个组访问对象中的第一个元素?
- json - herokuapp opentable api 在 Chrome 或 Postman 中没有返回任何结果