-
Notifications
You must be signed in to change notification settings - Fork 35
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
Migration path to Avalonia 11 #80
Comments
Hi, Since its yet a preview release we dont have immediate plans for upgrade. |
@joaompneves Thank you for the quick response. That's understandable. I am willing to help, if you'd like. How about adding a branch for Aval. 11 Support? I would just need a short explanation, what task would be needed to achieve it and maybe the answer to some further questions. Then I could try to solve them in a PR. |
Sure, feel free to open a PR. First of all you need to upgrade |
@joaompneves Cool thanks for the starting guide. I'll keep you updated. |
So I tried to load the project into my IDE (JetBrains Rider on macOS) and I noticed, that this project seems to be tied pretty tight to a windows build process, isn't it? I took a look in the I'm willing to use a Windows System to do the PR, is there any short guide you could give how to set up the project to build and test the results? Thank you. |
The project builds and runs on macOS. Just load it on Rider and launch the CefGlue.Demo.Avalonia. It should run without troubles and its a good test environment. Regarding the Tests project, it only runs on windows due to some threading issues/limitations on mac. Running Tests on windows its pretty straightforward using Visual Studio Test Explorer. |
Mmh, this did not work for me. Maybe my macOS is too old? (MacBook Pro 13" Early 2015, macOS Monterey 12.6.3) Current error:
|
Short update: I tried the whole procedure on a Windows 10 machine and could still not build the project. dotnet sdk version is |
Next step on mac: Since the cd ~/Projects/CefGlue/CefGlue.Demo.Avalonia/bin/Debug/net6.0
ln -s Xilium.CefGlue.BrowserProcess Xilium.CefGlue.BrowserProcess.dll Now the error is a missing
|
Opened a PR #82 but the browser does not display.
|
@joaompneves Wow this is awesome, thank you for your effort. I also have no clue what's going on, I think I have to better understand the code. I think that the problem is maybe in Cef itself, not CefGlue, but I'm not sure. |
Well, I made a mistake and forgot to add the app styles... the browser is now showing up. |
Thank you so much. I'll check and report back, if it is working. |
@joaompneves dotnet publish MyProject -f net7.0 -r "win-x64" -c "Release" -o "dist/win-x64" --self-contained -p:PublishSingleFile=true -p:PublishReadyToRun=true
I'm getting the error below in If required, I try to set up an example project asap...
|
Try without -p:PublishSingleFile=true. Check for any files missing differences between debug and release. |
@joaompneves |
Glad it worked. In the future we will release this from the main branch, once Avalonia 11 becomes stable. Thanks, no need ;) |
Hey there,
I tried to build a Project with Avalonia 11 but unfortunately it did not work, because there are still dependencies requiring Avalonia Styles 0.10.x.
I would really appreciate a migration path to Avalonia 11 - and am willing to help, unfortunately I don't know what would be the migration path and which files I need to change to make the project compatible.
This issue may be releated to OutSystems/WebView#303, but I think this is the right project to report this.
Thank you!
The text was updated successfully, but these errors were encountered: