You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RCL + Libman: Restored files don't get packed / published at the correct location in final app. #634
Files that are restored with the Microsoft.Web.LibraryManager.Build (LibMan) inside a Razor Class Library (RCL) are not deployed to the correct location in the final consuming app (e.g. Blazor Server App).
Instead of being deployed to: wwwroot/_content/<RCL Package Name>/
they are deployed to wwwroot/
This happens only if the files are not yet restored when you pack / publish the app. Once the files are restore they are correctly deployed in subsequent builds.
I found out that the ResolveCurrentProjectStaticWebAssetsInputs target takes content files as its input. The LibraryManagerRestore on the other hand doesn't produce content items. If you apply the following workaround, the issue disappears:
Thanks for the report. We are aware of a few issues when working with Razor Class Libraries. I'm working on a proposal currently, and I'll include this work into that.
Activity
sayedihashimi commentedon Oct 28, 2021
Thanks for the report. We are aware of a few issues when working with Razor Class Libraries. I'm working on a proposal currently, and I'll include this work into that.
Tragetaschen commentedon Jun 9, 2022
Is there any progress? I have just spent too much time figuring out that this issue caused a production failure
theknut commentedon Dec 15, 2023
Any update on this? If there is a proposed solution, why not use it?
paule96 commentedon Nov 21, 2025
@sayedihashimi any updates on that topic? With blazor wasm it seems the workaround is also not working anymore