Skip to content

Commit 0b4d2e8

Browse files
committed
支持版本号读取 Version 配置内容
1 parent cdef08b commit 0b4d2e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DotNETBuild/Context/CompileConfiguration.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public string AssemblyVersion
242242
public string AppVersion
243243
{
244244
set => SetValue(value);
245-
get => GetString();
245+
get => GetString() ?? GetString("Version");
246246
}
247247

248248
/// <summary>
@@ -251,7 +251,7 @@ public string AppVersion
251251
/// <remarks>
252252
/// 值如 linux-x64 或 win-x64 或 linux-loongarch64 等
253253
/// </remarks>
254-
public string RuntimeIdentifier
254+
public ConfigurationString? RuntimeIdentifier
255255
{
256256
set => SetValue(value);
257257
get => GetString();

0 commit comments

Comments
 (0)