unoplatform / Uno.Wasm.Bootstrap

A simple nuget package to run C# code in a WASM-compatible browser
Other
364 stars 57 forks source link

The name of web root folder should be configurable #852

Open mmarinchenko opened 3 months ago

mmarinchenko commented 3 months ago

Commit reference: https://github.com/unoplatform/Uno.Wasm.Bootstrap/commit/872287f0d10962720c70764e507df4d8694a6e55

In ASP.NET Core:

  1. The name of web root folder can be configured using IWebHostEnvironment.WebRootPath property.
  2. Static files can be served outside of web root path.

Thus, Uno Wasm Bootstrap should not force wwwroot to be added at the end of the publishing path.

We have several Uno applications that are configured to publish to the appropriate folders in our build pipeline (without specifying wwwroot in the path). Now, after upgrading from version 7.0.x, everything is broken...

agneszitte commented 3 months ago

cc @jeromelaban

jeromelaban commented 3 months ago

@mmarinchenko We do not have a change available to get this out of the current structure from what ASP.NET does. It may be modifiable when the bootstrapper will move to net9.