chromelyapps / Chromely

Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
MIT License
2.98k stars 280 forks source link

How to publish an .net 5.0 application contains "Chromely" correctly? #324

Closed LiveOrNot closed 3 years ago

LiveOrNot commented 3 years ago

I use "dotnet publish -r linux-x64 /p:PublishSingleFile=true" to publish my .net 5.0 application, all cef files are copied to publish path, but when I use "./myApplication" to run my application on Ubuntu 18.04, some errors like 'System.DllNotFoundException' occured. Here is the details. image

thanks, looking forword to your reply!

mattkol commented 3 years ago

@LiveOrNot the project does not support publishing or packaging. If this works in the IDE, it would be advisable to compare what works with what doesn't on the same machine.

From experience if it is unable to load libcef and it is physically there then it likely means some dependencies are missing or you have the wrong file (x86 for x64 or vice versa).

This is an old wiki page but some info there may help, especially checking for dependencies.

LiveOrNot commented 3 years ago

Thanks, Cross-Platform is really a pit! I hope the coming Maui can give C# programmers a little comfort,hahaha