diff --git a/doc/features-idbfs.md b/doc/features-idbfs.md new file mode 100644 index 000000000..0b5b83d32 --- /dev/null +++ b/doc/features-idbfs.md @@ -0,0 +1,22 @@ +--- +uid: UnoWasmBootstrap.Features.idbfs +--- + +# Support for IDBFS + +In order to support emulated filesystem using [IDBFS](https://emscripten.org/docs/api_reference/Filesystem-API.html#filesystem-api-idbfs), add the following to your `.csproj`: + +```xml + + true + +``` + +Note that this property is a shortcut to this equivalent configuration: + +```xml + + + + +``` diff --git a/doc/toc.yml b/doc/toc.yml index 4c22f5107..6ea53dd01 100644 --- a/doc/toc.yml +++ b/doc/toc.yml @@ -28,6 +28,8 @@ items: href: features-threading.md - name: Deep linking (routing) href: features-deep-linking.md + - name: IDBFS Support + href: features-idbfs.md - name: Pre-compression href: features-pre-compression.md - name: Embedded mode diff --git a/doc/using-the-bootstrapper.md b/doc/using-the-bootstrapper.md index a6dc4579d..a902c87ac 100644 --- a/doc/using-the-bootstrapper.md +++ b/doc/using-the-bootstrapper.md @@ -104,6 +104,12 @@ By default, the .NET runtime does not load all resource assemblies, but if you w ``` +### IDBFS + +In version 8.x and earlier of the bootstrapper, IDBFS support was enabled by default. + +Moving the .NET 9, the default interpreter runtime does not enable it by default. Read this documentation in order to [restore IDBFS support](xref:UnoWasmBootstrap.Features.idbfs). + ### Interop - `Module.mono_bind_static_method` is not available anymore, you'll need to use `Module.getAssemblyExports` instead. diff --git a/src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets b/src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets index be10c9bfe..a9e5b5ed6 100644 --- a/src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets +++ b/src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets @@ -149,6 +149,10 @@ BeforeTargets="ResolveStaticWebAssetsConfiguration"> + + + + <_WasmPInvokeModules Include="__Native" /> <_WasmPInvokeModules Include="__Internal" /> @@ -316,6 +320,16 @@ $([System.IO.Path]::GetFullPath($(_FilteredAotProfile))) + + + + true + + + + + true + + - - -