tryphotino / photino.NET

https://tryphotino.io
Apache License 2.0
889 stars 73 forks source link

Static files from nugets #40

Closed ArieBen closed 3 years ago

ArieBen commented 3 years ago

I'm trying to reference <script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" defer></script> or <link rel="stylesheet" href="_content/Telerik.UI.for.Blazor/css/kendo-theme-default/all.css" /> But it's not found.

Edit: I've published the solution to a folder check where the files go. The _content folder was actually created on deploy and the references work. The folder isn't created during the debug build though....

ottodobretsberger commented 3 years ago

In the properties, have you made sure the setting "Copy to Output Directory" is set to "copy if newer" on those files you're referencing?

ArieBen commented 3 years ago

these are embedded files in the Telerik.UI.for.Blazor package. The _content folder is created in a publish to folder so I guess the build action must be good, there's no issue with the package. But I had to copy that _content folder to the bin/debug manually to be able to use these components in debug mode.

ottodobretsberger commented 3 years ago

These packaged file references don't seem to be related directly to a Photino issue. In any case, we've recently updated Photino to v2. If you'd like to give it a try and see if the issues persist, maybe we can talk about that further.