Skip to content

Commit 3267624

Browse files
committed
🔧 调整 FileVersion 格式以兼容 msix 要求
将 AssemblyInfo.Constants.cs 中的 FileVersion 常量格式修改为始终包含四位,确保第四位为 0,满足 msix 安装包对版本号的格式要求。
1 parent 5bb8b2b commit 3267624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AssemblyInfo.Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static partial class AssemblyInfo
2525
/// </summary>
2626
const string ver_for_rc = "0";
2727

28-
public const string FileVersion = $"{Version2}.{VersionBuild}.{ver_for_rc}2{ver_for_preview}";
28+
public const string FileVersion = $"{Version2}.2{ver_for_rc}2{ver_for_preview}.0"; // msix 需要保持第四位为0
2929

3030
public const string InformationalVersion = Version;
3131
//public const string InformationalVersion = $"{Version}-preview.{ver_for_preview}";

0 commit comments

Comments
 (0)