Building assets using MSBuild & NPM needs further clarification #42409
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-client-assets
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
question
Status: Resolved
Last year @javiercn helped with a resource bundling issue (#35274). Unfortunately, there is an undesirable side-effect of the method (see the end of #42374 for a demonstration of the problem). I went back to the blog post https://devblogs.microsoft.com/dotnet/build-client-web-assets-for-your-razor-class-library/ and it appears that the reference library never made it out of the alpha stage of development. The sample app doesn't help as it is based upon the same alpha build.
My referenced csproj material.blazor.csproj does the build of js & css assets properly (and builds them only if the outputs are missing or out of date) but is apparently running the npm commands too late to have the generated assets in wwwroot recognized as static web assets.
So three questions/comments:
to an earlier build step. If so, what step would be appropriate. (and are the build steps documented)?
The text was updated successfully, but these errors were encountered: