fix: separate WASM and host project restore in CI
TaxBaik CI/CD / build-and-deploy (push) Failing after 24s

Problem:
- Blazor WebAssembly projects run in browser (no linux-x64 needed)
- Requesting -r linux-x64 causes WASM SDK to look for Mono.linux-x64
- .NET 10.0.9 Mono runtime doesn't exist yet on NuGet

Solution:
- Restore host projects (Web, Proxy) with -r linux-x64
- Restore WASM clients (Web.Client, Portal.Client) without runtime
- Restore shared libraries normally

This prevents NU1102 error while still getting correct runtimes.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-07-04 04:53:00 +09:00
parent 9ee812f563
commit 8c7df7a813
+14 -2
View File
@@ -19,8 +19,20 @@ jobs:
with:
dotnet-version: '10.0'
- name: Restore dependencies (include Linux runtime)
run: dotnet restore src/TaxBaik.sln -r linux-x64
- name: Restore dependencies
run: |
# WASM 프로젝트는 브라우저에서 실행되므로 런타임 지정 불필요
# Host project (TaxBaik.Web)는 Linux에서 실행되므로 복원
dotnet restore src/TaxBaik.Web/TaxBaik.Web.csproj -r linux-x64
dotnet restore src/TaxBaik.Proxy/TaxBaik.Proxy.csproj -r linux-x64
# WASM 클라이언트 프로젝트는 런타임 지정 없이 복원
dotnet restore src/TaxBaik.Web.Client/TaxBaik.Web.Client.csproj
dotnet restore src/TaxBaik.Portal.Client/TaxBaik.Portal.Client.csproj
# 의존성 복원
dotnet restore src/TaxBaik.Application/TaxBaik.Application.csproj
dotnet restore src/TaxBaik.Infrastructure/TaxBaik.Infrastructure.csproj
dotnet restore src/TaxBaik.Domain/TaxBaik.Domain.csproj
dotnet restore src/TaxBaik.Application.Tests/TaxBaik.Application.Tests.csproj
- name: Build solution
run: dotnet build src/TaxBaik.sln -c Release --no-restore -p:ContinuousIntegrationBuild=true