I wonder if Add-Ins supports C# WebAssembly / Blazor so I can code in C# and not only java script to develop a more sophisticated Add-in?
If it is, I would like to know how I could use C# for an Add-In in Outlook to then be deployed in Marketplace.
I wonder if Add-Ins supports C# WebAssembly / Blazor so I can code in C# and not only java script to develop a more sophisticated Add-in?
If it is, I would like to know how I could use C# for an Add-In in Outlook to then be deployed in Marketplace.
Hi @GunnarN-8848,
Considering your issue may be more related to development instead of Outlook desktop client, I would remove Outlook tag under your post, thanks for your understanding.
There is no WASM support. WASM is a vm sandbox implemented by the browser. It is currently not implemented by WebView controls used by Windows and MacOs applications. If WASM becomes popular enough, the WebViews may add support. There are requests for Electron to support WASM.
While the office apps could add their own WASM support, WASM apps would not be practical with Online Office (as only one WASM is supported per site). It would make more sense to request direct Blazor support in office apps, but again there is the issue of online apps (but there is a javascript interpreter for WASM which can host blazor code).
While office applications do not officially support blazor, you may be able to get the server version to work. Currently Fluent UI React is the preferred solution:
https://docs.microsoft.com/en-us/office/dev/add-ins/design/using-office-ui-fabric-react
but if you want non react then use fabric core
https://docs.microsoft.com/en-us/office/dev/add-ins/design/fabric-core
note: As WASM has no access to the network or dom except calling JavaScript via messages, I don’t see how it can be more sophisticated.
Could you give an example of javascript interpreter for WASM which can host Blazor code? Especially for an Add-in.
I would strongly like to use Blazor to code C# for Add-Ins for Markeplace.
A former person has asked MS team on their plan to support Blazor: https://blog.codeinside.eu/2020/04/30/blazor-for-office-addins-first-look/
But UserVoice is not supported by MS, so I put my wish and request here to add Blazor support in Add-Ins for online and desktop Office 365 apps.
If you look at the blazers JavaScript startup code, you will see it checks for WASM support. If not it uses a JavaScript WASM interpreter. The performance is ok, but not great.
I think trying to use blazor is a bad approach. You can use typescript.
Note: As supporting two blazor addins would be very difficult and not performance in a browser, it’s unlikely to get support anytime soon.
14 people are following this question.
How to call api method from child to parant razor component in Blazor webassembly
How to use bUnit Testing Frameworks for the Blazor web assembly project
Blazor Server : Problem with load RCL at Runtime
Blazor - Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
How to get user's MaximunAttachmentSize value in Outlook VSTO