-
Notifications
You must be signed in to change notification settings - Fork 57
Description
What would you like to be added? π‘
-
I would like to have the enhancements for Asset handling on WebAssembly Served on a Asp Net core Project thats using the
Uno.Wasm.Bootstrapper.Server
Package thats src code for theAspNetCoreExtensions
is located in this Repository, if possible -
Are there limits of what functions we can or should NOT use in projects that including this package? Like for file/Asset management at the moment uno uses
UseStaticFiles
internally, what about thebuilder.Services.AddDirectoryBrowser();
?
Why is this needed? π€
Using MapStaticAssets could be a good enhancement reading the asp net core docs page here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/map-static-files?view=aspnetcore-9.0
since uno is using brotli for webassemly for example also.
I was not able to find a Recommendation or advise for how to work with assets in using this package if there are some, only this Uno.Wasm.Bootstrapper
Package specific docs: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-additional-files.html but I would assume, as those are seperate packages, this can not be asumed to apply on the Server Package also.
Renderer π¨
- Skia
- Native
For which platforms π±π»π₯οΈ
WebAssembly served on the provided Server Project while the Server Project would be the startup one
Anything else we need to know? π¬
Maybe someone is able to tell about this. Would be interesting to know, even if we can not get this, if or what advises you may have for working with files specifically when using this package.
seems like uno is using a "WebRootProvider" for this, maybe that can help with this task?
Uno.Wasm.Bootstrap/src/Uno.Wasm.Bootstrap.Server/AspNetExtensions.cs
Lines 37 to 39 in 4ee6887
var webHostEnvironment = builder.ApplicationServices.GetRequiredService<IWebHostEnvironment>(); | |
var options = CreateStaticFilesOptions(webHostEnvironment.WebRootFileProvider); |