Search code examples
blazorblazor-webassemblydynamics-business-central

Is it possible to host a Blazor WebAssembly app inside business central control add-in?


Is it possible to host a Blazor WebAssembly app inside a business central control add-in?

To clarify this better, I do not want the Blazor app to be hosted on a server and then be loaded in the control add-in, I want to host it in the control add-in.


Solution

  • I guess technically the answer is yes, but I wouldn't recommend doing it.

    I have seen a hack where someone included WebAssembly in the Control Add-in by renaming the assemblies to jpeg files.

    This will result in the compiler packaging the files with the app meaning they would be available for usage once the app is published.

    Again I would consider this extremely experimental and not recommended for production environments.

    It is an exploit for how the compiler packages resources at the moment which might be subject to change.