The new (non-Blazor) browser-wasm
runtime of .NET 7 allows for .NET projects to be compiled to WebAssembly and run in the browser. There is limited documentation for this, but a lot of the details are still either undocumented or hard to find.
If you were compiling an app to WASM using Emscripten then you would have a virtual file system, to which you could preload files. Does the browser-wasm
runtime have something similar, that would allow preloading files for the normal .NET file API (like IO.FileStream
) to access?
There may also be a way to embed files into the WASM file. While no doubt useful for some apps, I need a way to dynamically load/read data files that aren't static data.