aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

[Suggestion] Make Blazor Library content such as images referenceable in using project

Open SamVogelskamp opened this issue 8 years ago • 1 comments

To my knowledge and experimentation there is no way to use content provided by a Blazor Library in the project it's referenced in, unless I'm missing some specification of tagHelpers that introduce this behavior.

To give an example I would like to be able to use an image located in the library's content folder by referencing to src="<LibraryName>/content/<image>"

SamVogelskamp avatar Oct 25 '18 11:10 SamVogelskamp

Blazor class library content should get added under the dist/_content/<lib_name> folder in the app, which is made available as static content. You should be able to reference library content from there. Ex <img src="_content/BlazorLib1/background.png" />.

danroth27 avatar Oct 29 '18 19:10 danroth27