bootsharp icon indicating copy to clipboard operation
bootsharp copied to clipboard

Compile C# solution into single-file ES module with auto-generated JavaScript bindings and type definitions

Results 24 bootsharp issues
Sort by recently updated
recently updated
newest added

Hi! I found that after bundling, the created module does not work (`dotnet.boot()` crashes). This is due to the usage of undeclared identifiers assigned in certain functions. This shouldn't be...

stale

Once multi-threading is available in .NET's wasm-browser, add an option to enable it with the packager. Tracking: https://github.com/dotnet/runtime/issues/68162

enhancement

It looks like at some point (.NET 7?) a new JS interop layer will be introduced: - https://github.com/dotnet/runtime/pull/66304 - https://github.com/dotnet/runtime/pull/71332

enhancement

Hi again! I used DotNetJS to create a library that exposes some common functions that we share across C# executables and an Electron app to ensure the behaviour is identical....

enhancement

Due to #68 compiler now require `#nullable enable` defines when nullable reference type annotations are used in the auto-generated files. I'm not aware of a reliable way to detect whether...

enhancement
help wanted

Hi again, I tested the library with angular and it is running into an error: ```bash universalModuleDefinition:1 Uncaught ReferenceError: global is not defined at universalModuleDefinition:1:1 at Object.9424 (universalModuleDefinition:1:1) at __webpack_require__...

enhancement
help wanted

It is not clear whether the .NET runtime WASM module have to be terminated and/or if it can be re-initialized. There appears to be `emscripten_force_exit` function in the module, but...

enhancement
help wanted

While Blazor provide APIs for raw byte streaming between .NET and JavaScript ([doc](https://docs.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/call-javascript-from-dotnet?view=aspnetcore-6.0#stream-from-net-to-javascript)), .NET to JS streaming relies on browser-only `Response` type: https://github.com/Elringus/DotNetJS/blob/97647de97a9ffe0aafdc1941a947f79f9816b9d8/JavaScript/dotnet-js-interop/src/main.js#L458 Associated calls in the runtime: https://github.com/dotnet/aspnetcore/blob/release/6.0/src/Components/Web.JS/src/GlobalExports.ts#L80 https://github.com/dotnet/aspnetcore/blob/release/6.0/src/Components/Web.JS/src/StreamingInterop.ts#L24...

enhancement
help wanted

Currently, it's required to apply `[JSNamespace]` attribute to each assembly that has JS bindings and to the entry assembly. That is because source generator gets the attribute from the assembly...

enhancement
help wanted