-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can't use Microsoft.Extensions.DependencyInjection in wasm #17838
Comments
I don't see how that should be our issue. Seems like you should add the nuget described in the error message explicitly. |
I found that not only dependency injection cannot be used, as long as I switch to Browser mode, many packages in the public project will be prompted to be not found |
Maybe create blank new project and add the dependency 1 by 1 to figure out where it breaks. Still nothing that we can fix for you. However you are welcome to ask questions on telegram or GitHub discussions |
Describe the bug
The nuget package is also referenced, and there is no error in compilation. It can run normally in desktop mode. Switching to browser mode captures an error in debugging:
"The type 'lServiceCollection' is defined in an assembly that is not referenced.you must add a reference to assembly "Microsot Extensions,Dependencyiniection Abstractions,Verion=8.0.00, Cuture=neutral.PublickeyToken=adb9793829ddae60'"
To Reproduce
none
Expected behavior
No response
Avalonia version
11.2.2
OS
WebAssembly
Additional context
No response
The text was updated successfully, but these errors were encountered: