Skip to content
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

Not able to run AvalonStudio binary #774

Open
chandramohan83 opened this issue May 24, 2022 · 5 comments
Open

Not able to run AvalonStudio binary #774

chandramohan83 opened this issue May 24, 2022 · 5 comments

Comments

@chandramohan83
Copy link

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:

@dsoronda
Copy link

dsoronda commented May 26, 2022

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

@ghost
Copy link

ghost commented Jun 22, 2022

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

@ghost
Copy link

ghost commented Jun 22, 2022

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

@quasar-pankaj
Copy link

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

@darkoverlordofdata
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants