yuriys-kentico/Kentico.Xperience.AspNetCore.XeroCode.Widgets

Resources not including or referencing properly in nuget package

Opened this issue · 1 comments

Administrator panel gives 404 for Core-icons files:

ex:
http://kentico13baseline.hbstest.net/Content/Fonts/Core-icons.woff

These items are either not referenced properly if they are in the nuget package or or missing all together. Recommended to include these in the Razor Class Library then adjust references to ~/Content/Kentico.Xperience.AspNetCore.XeroCode.Widgets.RazorViews/Fonts/Core-icons.woff

Just create a wwwroot folder in the RCL library, with a Fonts folder under it, and make sure in the csproj.cs to include those files in the export.

See example:
the embeded css

the csproj include

the path path referencing it

Thanks. This was helpful for resolving the missing icons, though I just added a content\fonts folder to wwwroot in the .net core app and then copied the fonts from \CMS\App_Themes\Default\Fonts there to resolve the missing resource. Not sure if that's the best long term solution, but seemed expedient.