AvalonStudio icon indicating copy to clipboard operation
AvalonStudio copied to clipboard

Not able to run AvalonStudio binary

Open chandramohan83 opened this issue 2 years ago • 5 comments

I have installed dotnet

chandra@chandra-virtualbox:~/NEW_PROJ/AvalonStudio/AvalonStudio/AvalonStudio/bin/Debug/net5.0$ dotnet --info .NET SDK (reflecting any global.json): Version: 6.0.300 Commit: 8473146e7d

Runtime Environment: OS Name: ubuntu OS Version: 20.04 OS Platform: Linux RID: ubuntu.20.04-x64 Base Path: /home/chandra/.dotnet/sdk/6.0.300/

Host (useful for support): Version: 6.0.5 Commit: 70ae3df4a6

.NET SDKs installed: 5.0.408 [/home/chandra/.dotnet/sdk] 6.0.300 [/home/chandra/.dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 5.0.17 [/home/chandra/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.5 [/home/chandra/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.17 [/home/chandra/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.5 [/home/chandra/.dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

But when I run ./AvalonStudio it is throwing below error

It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version '5.0.17' was not found.

  • No frameworks were found.

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:

  • https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=5.0.17&arch=x64&rid=ubuntu.20.04-x64

chandramohan83 avatar May 24 '22 14:05 chandramohan83

try this in application folder: dotnet run -f net5.0 app_to_run where app_to_run is application you want to run, for example console.exe or console.dll

dsoronda avatar May 26 '22 21:05 dsoronda

What's wrong? If you change the version from .NET Standard to .NET 5 or .NET 6, that's fine.

ghost avatar Jun 22 '22 09:06 ghost

You may need to upgrade your Avalonia UI to be compatible with .NET 5 or higher.

ghost avatar Jun 22 '22 09:06 ghost

I am running Ubuntu 22.04 with .net6. I followed Getting Started With AvalonStudio (Building from Source). The binary got built with a few warnings but that's OK. It created a net5.0 folder where it built the application. When I try to run it I get the same error as mentioned above. Net5 can't be installed as it requires libssl version which is old. So I tried giving it -f net6.0 but it doesn't work and I get a lot of errors.

Then I tried editing the .json file and replaced all mention of net5.0 to net6.0 but thet gives me a lot of errors.

Anyway, if the binary is getting built with net5.0 that's OK with me but is there a workaround to run it?

@MateiIonutEduard 's comment seems relevant but I am not clear as to what to change and where.

Regards, Pankaj

quasar-pankaj avatar Jun 22 '22 10:06 quasar-pankaj

I found this fixed this issue for me on ubuntu 22.04: https://forum.unity.com/threads/workaround-for-libssl-issue-on-ubuntu-22-04.1271405/

The fix that worked for me was manually downloading the '[libssl1.0.0_1.0.2n-1ubuntu5.8_amd64.deb' ](http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.8_amd64.deb)package from http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/

NOTE: download the right version for your architecture

then, in the download location:
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.8_amd64.deb

restart the unity editor and hopefully you're back in the game.

darkoverlordofdata avatar Feb 24 '23 02:02 darkoverlordofdata