diff --git a/src/notes.md b/src/notes.md new file mode 100644 index 000000000..4690e51ad --- /dev/null +++ b/src/notes.md @@ -0,0 +1,18 @@ +# Using Assets in package + +When working with static assets in a Blazor package project(bootstap icons, images, styles, ...), for proper function need to be reference like: `_content/{PACKAGE ID}/{PATH AND FILE NAME}`. + +For example: + +~~~ HTML + +~~~ + +NOT only direct reference, as this approach may not function correctly when you're utilizing assets outside of the default project. + +~~~ HTML + +~~~ + +For more information, refer Microsoft documentation: +[Microsoft docs](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/class-libraries?view=aspnetcore-6.0&tabs=visual-studio#create-an-rcl-with-static-assets-in-the-wwwroot-folder) \ No newline at end of file