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
@@ -266,7 +266,7 @@
<div class="login-footer">
<p>© 2026 QuantEngine. 모든 권리 예약.</p>
<p style="font-size: 11px; margin-top: 4px; opacity: 0.8;">Version: v1.0.0 (7172de36)</p>
<p style="font-size: 11px; margin-top: 4px; opacity: 0.8;">Version: @Model.AppVersion</p>
</div>
</div>
</body>
@@ -1,3 +1,4 @@
using System.Reflection;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
@@ -17,6 +18,9 @@ public class LoginModel : PageModel
public string? Username { get; set; }
public bool RememberUsername { get; set; }
public string? ErrorMessage { get; set; }
public string AppVersion => Assembly.GetEntryAssembly()
?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
?.InformationalVersion ?? "1.0.0";
public LoginModel(AuthService authService, IIpLockoutService lockoutService, ILogger<LoginModel> logger)
{
@@ -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,