chromelyapps / Chromely

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

App does not execute #389

Closed XnokovipR closed 1 year ago

XnokovipR commented 1 year ago

Dears, I've started to write testing app (VS2022 Pro, .NET 6.0) based on Chromely 5.2.101. All the tests I've made on Windows work normally. However, I cannot execute the app on Ubuntu (tested 18.04LTS and 20.04LTS, in both cases the Ubuntu OS is newly installed). On both versions, I've got the similar errors (see below).

The runtime identifier is set to linux-x64.

Please, can you help me to resolve this problem? Thank you.

` $dotnet ChromelyTest.dll On CefGlue child process launch arguments: /proc/self/exe --type=gpu-process --no-sandbox --locales-dir-path=/home/radek/Predator/VSLinuxDbg/ChromelyTest/locales --log-severity=info --resources-dir-path=/home/radek/Predator/VSLinuxDbg/ChromelyTest --lang=en-US --user-data-dir=/home/radek/.config/cef_user_data --default-encoding=utf-8 --allow-file-access-from-files --allow-universal-access-from-files --disable-web-security --ignore-certificate-errors On CefGlue child process launch arguments:

DevTools listening on ws://127.0.0.1:20480/devtools/browser/3f40e225-4306-42f8-82d1-c6129d3678dc /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --locales-dir-path=/home/radek/Predator/VSLinuxDbg/ChromelyTest/locales --log-severity=info --resources-dir-path=/home/radek/Predator/VSLinuxDbg/ChromelyTest --lang=en-US --user-data-dir=/home/radek/.config/cef_user_data --default-encoding=utf-8 --allow-file-access-from-files --allow-universal-access-from-files --disable-web-security --ignore-certificate-errors Could not execute because the specified command or file was not found. Possible reasons for this include:

mattkol commented 1 year ago

@Chebona

It is not quite obvious what you are trying to do. From the message you shared -

Could not execute because the specified command or file was not found. Possible reasons for this include:

Seems like dotnet is not installed yet on your workstation

Are you able to run the Chromely.CrossPlat demo on Ubuntu? You can see more info in the guide here.

XnokovipR commented 1 year ago

Hello mattkol, thank you for your answer.

Yes, .NET 6.0.403 is installed. I use it for my other applications. All the program I write under Windows (in Visual Studio), where the program is also compiled and the output is copied to Ubuntu. In this way I write all my code with no problems. And in this way I've also compiled and copied Chromely app (the Cross-plarfom example was also tested without success).

However, when I try to compile your Cross-plarfom example directly under Ubuntu, the program was successfully compiled and executed. So, the problem is with the compilation under Windows. Is there any way how to compile it under Windows? I write/compile all the apps under Windows and use remote debugging if the program is also executed under Linux?

Thank you.

mattkol commented 1 year ago

@Chebona

So, the problem is with the compilation under Windows.

In Windows, I usually compile using Visual Studio. I am currently using Visual Studio 2022. Visual Studio Code, JetBrains Rider and other IDEs should work too.

I think it is best to compile in any IDE of your choice and we can see if the issues you get in that process can be addressed.

Thanks.