Should packages that deliver assets as
staticwebassets
in a
razor class library
support overriding the embedded static asset with a local physical file or is it just razor files that are supported?
I did find
https://learn.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-8.0&tabs=visual-studio#override-views-partial-views-and-pages
When a view, partial view, or Razor Page is found in both the web app and the RCL, the Razor markup (.cshtml file) in the web app takes precedence.
If static assets can also be overridden then I'm struggling to get it to work by having a file in
App_Plugins\{PACKAGENAME}\Views\{FILENAME}.html
I've checked the
Microsoft.AspNetCore.StaticWebAssets.Props
file in the nuget package and the
<BasePath>App_Plugins/{PACKAGENAME}</BasePath>
is correct and the asset is in the
staticwebassets/Views/{FILENAME}.html
in the package but don't seem to be able to override with the corresponding physical file on disk?
Cheers all.