feat: Auto-copy Blazor client wwwroot on build
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 11s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 1m28s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 11s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 1m28s
- Add CopyBlazorClientWwwroot target to QuantEngine.Web.csproj - Automatically copies Blazor WebAssembly output to server wwwroot - Fixes missing _framework files and MIME type errors - Ensures static files are always up-to-date after build - Resolves Blazor module loading failures Before: Manual wwwroot copy needed after each build After: Automatic copy on every dotnet build Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,4 +28,13 @@
|
||||
<BlazorDisableThrowNavigationException>true</BlazorDisableThrowNavigationException>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Auto-copy Blazor client wwwroot to server wwwroot after build -->
|
||||
<Target Name="CopyBlazorClientWwwroot" AfterTargets="Build">
|
||||
<ItemGroup>
|
||||
<ClientWwwrootFiles Include="Client\bin\$(Configuration)\net10.0\wwwroot\**\*" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(ClientWwwrootFiles)" DestinationFiles="@(ClientWwwrootFiles->'wwwroot\%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
<Message Text="✅ Copied Blazor client wwwroot to server wwwroot" Importance="high" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user