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

We are currently using a [custom .NET runtime build](https://github.com/Elringus/DotNetUMD) and [JS wrapper post-processing](https://github.com/Elringus/DotNetJS/blob/97647de97a9ffe0aafdc1941a947f79f9816b9d8/JavaScript/dotnet-runtime/scripts/compile-runtime.sh#L13) to support webpack UMD target. This limits the options when building the projects, such as AOT and...

enhancement
help wanted

Currently, when a `[JSFunction]`-attributed method is invoked while the associated function is not implemented in JavaScript, a `JSException` is thrown, but without any message to identify reason of the error:...

enhancement
help wanted

Given there are multiple assemblies that require JavaScript interop (contain`[JSInvokable]` or `[JSFunction]` attributed methods), only the entry assembly is loaded, while when trying to invoke methods from the others, `Assembly...

enhancement
help wanted

Blazor provides APIs for unmarshalled JavaScript interop: https://docs.microsoft.com/en-us/aspnet/core/blazor/javascript-interoperability/call-javascript-from-dotnet#unmarshalled-javascript-interop We have to check if it's working with DotNetJS and implement associated tests: https://github.com/Elringus/DotNetJS/blob/97647de97a9ffe0aafdc1941a947f79f9816b9d8/JavaScript/dotnet-runtime/test/interop.js#L138

enhancement
help wanted

Starting with .NET 6 the runtime uses native platform API to generate random numbers: https://docs.microsoft.com/en-us/dotnet/api/system.guid.newguid?view=net-6.0#remarks In browser `crypto.getRandomValues` is [utilized by the runtime](https://github.com/dotnet/runtime/blob/release/6.0/src/libraries/Native/Unix/System.Native/pal_random.js#L27) and for other environments we are using...

enhancement
help wanted

Currently, we can detect when a property, method argument and method return type is explicitly marked as nullable (either `Nullable` or has `?` in nullable context) and generate corresponding TypeScript...

enhancement
help wanted

Anything that uses `IJSObjectReference` is set as `any` in the declaration files. We could introduce an optional attribute `JSObjectInterface` that would add the necessary metadata for the declarations generator to...

enhancement

Instead of JSON, explore marshaling via arrays, similar to Embind (https://emscripten.org/docs/porting/connecting_cpp_and_javascript/embind.html#value-types), eg: ```csharp public record Record (string Str, int Int, bool Bool, Record? Other); [JSExport] private static void ReceiveRecord ([JSMarshalAs]...

enhancement

.NET's JS interop currently is only able to marshal types with single-level nesting: - https://github.com/dotnet/runtime/issues/81348 — hence we have to handle otherwise natively-supported arrays (eg, `Task`) in a special manner....

enhancement
external

Just hope that maybe somebody else came across the same error: ``` error MSB4062: The "Bootsharp.Publish.BootsharpEmit" task could not be loaded from the assembly C:\Users\dnhb\.nuget\packages\bootsharp\0.1.3\build\..\tasks\Bootsharp.Publish.dll. Could not load file or...

bug
help wanted
external