fix: resolve 'Assembly already defined' - remove AddAdditionalAssemblies
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m16s
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m16s
MapRazorComponents<TaxBaik.WasmClient.Components.Admin.App>() automatically includes the root component's assembly, so AddAdditionalAssemblies() was causing duplication. Also remove VersionInfo @inject from App.razor since WebAssembly components cannot access server DI container. Use hardcoded 'unknown' for version. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
@using Microsoft.AspNetCore.Components.Web
|
@using Microsoft.AspNetCore.Components.Web
|
||||||
@inject VersionInfo VersionInfo
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="ko">
|
<html lang="ko">
|
||||||
<head>
|
<head>
|
||||||
@@ -13,7 +12,7 @@
|
|||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
||||||
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
|
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
|
||||||
<script>
|
<script>
|
||||||
window.taxbaikAdminBuildVersion = '@VersionInfo.Version';
|
window.taxbaikAdminBuildVersion = 'unknown';
|
||||||
window.taxbaikAdminComponent = 'AdminApp';
|
window.taxbaikAdminComponent = 'AdminApp';
|
||||||
document.documentElement.classList.toggle(
|
document.documentElement.classList.toggle(
|
||||||
'admin-login-route',
|
'admin-login-route',
|
||||||
|
|||||||
@@ -392,9 +392,10 @@ app.MapStaticAssets();
|
|||||||
// Phase 8: WebAssembly 렌더 모드 완전 마이그레이션
|
// Phase 8: WebAssembly 렌더 모드 완전 마이그레이션
|
||||||
// - App.razor: TaxBaik.WasmClient (호스트, WebAssembly)
|
// - App.razor: TaxBaik.WasmClient (호스트, WebAssembly)
|
||||||
// - Routes + Pages + Shared + Layout + Forms: TaxBaik.WasmClient (WebAssembly)
|
// - Routes + Pages + Shared + Layout + Forms: TaxBaik.WasmClient (WebAssembly)
|
||||||
|
// MapRazorComponents<TaxBaik.WasmClient.Components.Admin.App>()가 이미 어셈블리 포함하므로
|
||||||
|
// AddAdditionalAssemblies 불필요 (중복 시 "Assembly already defined" 에러 발생)
|
||||||
app.MapRazorComponents<TaxBaik.WasmClient.Components.Admin.App>()
|
app.MapRazorComponents<TaxBaik.WasmClient.Components.Admin.App>()
|
||||||
.AddInteractiveWebAssemblyRenderMode()
|
.AddInteractiveWebAssemblyRenderMode()
|
||||||
.AddAdditionalAssemblies(typeof(TaxBaik.WasmClient._Imports).Assembly)
|
|
||||||
.AllowAnonymous();
|
.AllowAnonymous();
|
||||||
|
|
||||||
// 애플리케이션 시작/종료 로깅
|
// 애플리케이션 시작/종료 로깅
|
||||||
|
|||||||
Reference in New Issue
Block a user