feat(web): dynamically fetch release version from AssemblyInformationalVersion
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 24s
Prepare Release / Build & Create Release (push) Successful in 59s
Prepare Release / Release Notification (push) Successful in 1s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 1m58s

This commit is contained in:
2026-07-12 13:21:27 +09:00
parent 3f45fbc36e
commit ee14f5fbe4
4 changed files with 10 additions and 2 deletions
@@ -93,7 +93,7 @@
</div>
<div>
<span class="text-muted">배포 버전:</span>
<strong>v1.0.0 (7172de36)</strong>
<strong>@Model.AppVersion</strong>
</div>
</div>
</div>
@@ -1,3 +1,4 @@
using System.Reflection;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;
using QuantEngine.Core.Interfaces;
@@ -17,6 +18,9 @@ public class IndexModel : PageModel
public int? RecentRunsCount { get; set; }
public bool IsDatabaseConnected { get; set; }
public string EnvironmentName => _environment.EnvironmentName;
public string AppVersion => Assembly.GetEntryAssembly()
?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
?.InformationalVersion ?? "1.0.0";
public IndexModel(
IWorkspaceRepository workspaceRepository,