更新时间:2023-11-14 12:49:28
一个简单的替代方法是让 C# 环境通过将 version 属性设置为 major.minor.*
为您增加程序集版本(如 AssemblyInfo 文件模板中所述.)
A simple alternative is to let the C# environment increment the assembly version for you by setting the version attribute to major.minor.*
(as described in the AssemblyInfo file template.)
不过,您可能正在寻找更全面的解决方案.
You may be looking for a more comprehensive solution, though.
编辑(在评论中回复问题):
EDIT (Response to the question in a comment):
来自 AssemblyInfo.cs
:
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// 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.*")]