Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DotNet.invokeMethodAsync function disabled with .NET 7 RC2 and 8 p5 in a Blazor addin project #544

Closed
RaoulRSV opened this issue Jun 17, 2023 · 3 comments
Assignees

Comments

@RaoulRSV
Copy link

RaoulRSV commented Jun 17, 2023

URL of sample

_URl :https://github.com/RaoulRSV/excel-blazor-add-in_NET7.0

Describe the bug

Enabling RC2 disables DotNet.invokeMethodAsync function in a "Blazor addin" project
Edit : I test it also with .NET8.0 pr v5 and I got the same bug wxith a "uncaught reference error : sharedarraybuffer is not defined". Please note that I am using Chrome and Visual Studio 17.7 p2

To Reproduce

Steps to reproduce the behavior:

  1. open sample here
  2. run sample with NET 7.0.
  3. Click twice on "ouvrir" ribbon button
  4. check in console message : "fin lancé : 1,2,3" after "lancerchaîné30"
  5. in csproj enable : WasmEnableThreads

Expected behavior

_run again : message "fin lancé: 1,2,3" has disappeared (after 2 click on "ouvrir" button") showing that DotNet.invokeMethodAsync function is disabled
Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • Platform [PC desktop,]: ______
  • Host [Excel, Word, PowerPoint, etc.]: Excel but could be any ______
  • Office version number: ______
  • Operating System: windows 11
  • Browser (if using Office Online): ______

Additional context

Note that sample is based on "Blazor addin" for which unexpectedly C# break point are not available : see [https://github.com//issues/535]

@ghost ghost added the needs triage 🔍 label Jun 17, 2023
@RaoulRSV RaoulRSV changed the title DotNet.invokeMethodAsync function disabled with .NET 7 RC2 DotNet.invokeMethodAsync function disabled with .NET 7 RC2 in a Blazor addin project Jun 17, 2023
@RaoulRSV RaoulRSV changed the title DotNet.invokeMethodAsync function disabled with .NET 7 RC2 in a Blazor addin project DotNet.invokeMethodAsync function disabled with .NET 7 RC2 and 8 p5 in a Blazor addin project Jun 19, 2023
@pinverso
Copy link

@aafvstam , this might be similar to this issue: #512

@RaoulRSV
Copy link
Author

RaoulRSV commented Jul 3, 2023

This issue seems to apply on all wasm blazor project, be it addin or not. See #548
I suggest this issue to be merged with #548

@RaoulRSV
Copy link
Author

as mentioned in #548. I finally understood that multithreading is still not available for blazor, be it with .net 7.0 rc2 or .NET 8.0 preview. I did misinterpret the blogpost on experimental multithreading. It is about webworkers in plain javascript but seems to still have its own difficulties see dotnet/runtime#68162.
Thanks to @aafvstam
I close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants