-
Notifications
You must be signed in to change notification settings - Fork 9
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 make EFCoreSample.Wasm project work on Visual Studio 2019 Preview 3 #4
Comments
Thanks for trying out Uno! For VS2019, updating to Uno.UI and Uno.Wasm.Bootstrap packages to the latest dev should be enough to work. The latest bootstrap contains a fairly recent version of mono-wasm. Let us know which error you're getting with the latest bits. We've made great progress in Uno lately, and we'll be updating this repo as well with the latest. |
Yeah, I forgot to tell you that I've already updated to the latest preview versions of Uno.* dependencies.
Please take a look at my fork and try to reproduce the problem I'm currently struggling with. |
This error is generally caused by an invalid temporary mono-wasm folder, try deleting manually and rebuild |
I've already tried it, the folder is recreated with the same content, which also 100% identical to the content of BTW I forgot to push this commit, the commit I was talking about above |
Found the reason, there's an override of the mono sdk, just drop this line it was an override to make parts of roslyn work. That being said, with recent version of mono-wasm, Roslyn needs to be configured differently (the assemblies are not readily available as they previously were) so you can use the UWP head "static" compilation mode in the mean time. |
OK, seems like now a correct version of Mono Wasm SDK is downloaded, but I'm still getting problems I will try to compile it using WSL and then on real Ubuntu later. However it would be great to have a compiled version (for Windows, Linux or both) in GitHub Releases, so people could try it. Could you provide a compiled version in Releases, because the compilation process seems to be tricky and it's OK, because the underlying technologies are bleeding edge etc P.S. It would be great to have a NuGet package of SQLite implementation ready to use with Uno, Blazor etc |
For the first error, this is caused by the linker, you can see the error message when setting your build output in detailed or diagnostics. For the second, you need to add this: |
So for some reason, even if there is a reference to and entries in Mono.Linker still cannot find
|
If you had used it under any other platform it would have been the same :) The last issue you're mentioning is an Uno.Wasm.Boostrap issue with the linker, where the Microsoft.CodeAnalysis.CSharp.Workspaces assembly is not part of the referenced assemblies, because there are no code references to it when building the main assembly (all types are internal) and Roslyn loads it via reflection. I've disabled the linker in #5 until this gets fixed, so you can get the sample running, and the compilation working. |
First of all thanks for creating such a great project as Uno.
I'm struggling at building your WASM version of EFCore sample. I think that the content of this repo might be outdated and / or subjected to bit decay, since Mono WASM is being actively developed. I'm currently stuck a the point when a specific version of WASM SDK is extracted to %temp% folder, but its layout doesn't match the one hard-coded (???) into MSBuild .target files.
I'm still figuring out how things work in Uno, so fixing its complex build system is far beyond my current Uno skills (:smile:)
The text was updated successfully, but these errors were encountered: