You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm slightly confused by the description. Is the goal here to produce a "wasm application without main" (the whole app bundle)? Or just be able to use [JSImport] in .NET library? For the latter, setting RuntimeIdentifier=browser-wasm should be sufficient. If the Microsoft.NET.Sdk.StaticWebAssets SDK is used, even the javascript files will be bundled correctly
For the "wasm application without main" what would be the use-case ?
Could we have blazor component with wasm functionality as nuget and then add that to non-wasm blazor project and expect it to work ?
Could we have dotnet wasm wrapped as react component and somehow flow it thru asp.net core in a way which would initialize the dotnet.js ?
I feel that the answer is probably not with nuget.
Could the same thing be achieved with npm package and node/webpack ecosystem ? Possibly yes.
Activity
maraf commentedon Jun 4, 2024
I'm slightly confused by the description. Is the goal here to produce a "wasm application without main" (the whole app bundle)? Or just be able to use
[JSImport]in .NET library? For the latter, settingRuntimeIdentifier=browser-wasmshould be sufficient. If theMicrosoft.NET.Sdk.StaticWebAssetsSDK is used, even the javascript files will be bundled correctlypavelsavara commentedon Jun 4, 2024
For the "wasm application without main" what would be the use-case ?
Could we have blazor component with wasm functionality as nuget and then add that to non-wasm blazor project and expect it to work ?
Could we have dotnet wasm wrapped as react component and somehow flow it thru asp.net core in a way which would initialize the dotnet.js ?
I feel that the answer is probably not with nuget.
Could the same thing be achieved with npm package and node/webpack ecosystem ? Possibly yes.
maraf commentedon Jun 4, 2024
If it's not the "wasm application without main" case, we can close the issue