Static web assets have different 'ContentRoot' metadata values when packing Blazor project. #20991
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-wasm
This issue is related to and / or impacts Blazor WebAssembly
Describe the bug
Error when packing Blazor webassembly application that has static assets (wwwroot) and reference to RCL package with static assets.
The error appear after updating from Blazor Webassembly Preview 1 to Preview 3, and remain after updating to Preview 4.
The reason why I pack my Blazor app into NuGet package is because it is the core of my application, and you can develop extensions referencing the core application. Today it is not implemented, but the idea is add the ability of loading extensions at runtime using reflection.
To Reproduce
obj
andbin
folders. (optionally, the error happens doing it and without doing it)If I remove my
wwwroot
folder or I remove reference toBlazored.Typeahead
, then I can pack it without any problems.Further technical details
dotnet --info
:The text was updated successfully, but these errors were encountered: