Adding WASM to existing Xamarin.Forms project throws multiple errors in different scenarios. #6953
Unanswered
albertoha94
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Thanks for the report! For your first stack trace, it seems that there's an exception happening when the page is created. You may need to display the exception raised in the For the other log, it would seem that you included the shared project twice somehow. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behavior
I recenlty tried Uno and decided to add it to an existing project I have using the information from Uno Platform for Xamarin.Forms Developers, at first I was getting issues regarding the version of the app but thankfully that was solved with the information provided with this Other issue.
Once I did this I was able to get the project running but it got stuck in the SplashScreen with the following errors:
I then checked if Uno was correctly installed by creating a new project and running Rpn Calculator, both ran successfully.
When checking Rpn Calculator, I saw a Shared Project and tried adding it in the same way in my project but that just gave me a different error:
Its worth noting that the second error only shows up if there's a reference to the Shared Project in the WASM project.
If there is no reference then I just get the first one but I'm uncertain which path to go.
In my project I was already using Dependency Injection, MVVM and Xamarin.Forms Shell so I don't know if something is related to this as well.
I will post 2 versions of the same project, One having the reference inside WASM and the second one not.
This to make sure which one is the right path to take and how to fix it.
Projects.zip
Expected behavior
The app should run with the given documentation.
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No workaround found so far.
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
On Forms:
-NETStandard.Library 2.0.3
-SQLiteNetExtensions.Async 2.1.0
-sqlite-net-pcl 1.7.335
-TinyMvvm.Autofac 2.4.14
-TinyMvvm.Forms 2.4.14
-Xamarin.Essentials 1.6.1
-Xamarin.Forms 5.0.0.1931
On UWP:
-Microsoft.NETCore.UniversalWindowsPlatform 6.2.10
-Xamarin.Essentials 1.6.1
-Xamarin.Forms 5.0.0.1931
On WASM:
-Microsoft.Extensions.Logging.Console 1.1.1
-Microsoft.Extensions.Logging.Filter 1.1.1
-NETStandard.Library 2.0.3
-Uno.UI.WebAssembly 3.9.7
-Uno.Wasm.Bootstrap 1.3.0
-Uno.Wasm.Bootstrap.DevServer 1.3.0
-Uno.Xamarin.Forms.Platform 5.0.0-uno.1799
Affected platforms
WebAssembly
IDE
Visual Studio 2019
IDE version
16.7.5
Relevant plugins
Anything else we need to know?
No response
Beta Was this translation helpful? Give feedback.
All reactions