fix: work around DevFlow.Blazor packaging bug breaking Windows build#484
fix: work around DevFlow.Blazor packaging bug breaking Windows build#484
Conversation
6c8c15d to
86c7f98
Compare
|
Update: This PR was briefly closed as superseded by #532, but reopened because #532 only fixes Release builds (DevFlow is now Debug-only). This PR is still needed for local Windows Debug builds where the DevFlow.Blazor packaging bug causes MSB3030 errors. Rebased on latest main with source-existence guards added. |
The Microsoft.Maui.DevFlow.Blazor NuGet package ships its static web assets (chobitsu.js, lib.module.js) under staticwebassets/ but the generated PRI references them under lib/.../wwwroot/ — a path that doesn't exist in the package. This causes MSB3030 copy errors on Windows builds. Add a build target that copies the files from staticwebassets/ to the expected wwwroot/ location before the content copy step runs.
86c7f98 to
5c7e0af
Compare
🔍 Multi-Model Code Review — PR #484PR: fix: work around DevFlow.Blazor packaging bug breaking Windows build 🟡 MODERATE — Hardcoded package version creates silent maintenance trapFile: The version The comment says this is by design ("no-op when the package version changes"), but this conflates two scenarios: (a) upstream bug fixed (desired no-op), and (b) version bumped but bug persists (silent breakage). Both look identical. The hardcoded TFM path Suggested fix: Add 🟡 MODERATE — Target mutates the global NuGet package cacheFile: The target writes files into
Suggested fix: For a temporary workaround, this is pragmatically acceptable — but add ✅ What looks good
🏁 Recommendation:
|
Summary
Microsoft.Maui.DevFlow.Blazorpreview NuGet package has a packaging bug: its PRI file referenceschobitsu.jsandMicrosoft.Maui.DevFlow.Blazor.lib.module.jsunderlib/.../wwwroot/, but the files only exist understaticwebassets/MSB3030copy errors on Windows builds, completely blockingrelaunch.ps1and any Windows debug builds_FixDevFlowBlazorWwwroot) that copies the missing files fromstaticwebassets/to the expectedwwwroot/location before the content copy step runsTest plan
dotnet build PolyPilot.csproj -f net10.0-windows10.0.19041.0 -c Debugsucceeds with 0 errorsrelaunch.ps1completes build + launch cycle successfully