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:
@@ -392,9 +392,10 @@ app.MapStaticAssets();
|
||||
// Phase 8: WebAssembly 렌더 모드 완전 마이그레이션
|
||||
// - App.razor: 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>()
|
||||
.AddInteractiveWebAssemblyRenderMode()
|
||||
.AddAdditionalAssemblies(typeof(TaxBaik.WasmClient._Imports).Assembly)
|
||||
.AllowAnonymous();
|
||||
|
||||
// 애플리케이션 시작/종료 로깅
|
||||
|
||||
Reference in New Issue
Block a user