Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug Report] Ambermoon Tools - Linux .NET update #84

Open
TobiasReich opened this issue Dec 14, 2022 · 1 comment
Open

[Bug Report] Ambermoon Tools - Linux .NET update #84

TobiasReich opened this issue Dec 14, 2022 · 1 comment

Comments

@TobiasReich
Copy link

Not a .NET expert but since I have dotnet 7.0.100 on my linux system I get an error when executing the tools.

They look like that:

You must install or update .NET to run this application.

App: /mnt/ramdisk/Ambermoon3DMapViewer
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet

The following frameworks were found:
7.0.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=manjaro-x64

However when trying the roll-forward Microsoft is suggesting here:
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet#rollforward
I only get an error regarding the parameters of the Main function.

$ ./Ambermoon3DMapViewer --roll-forward Major                                           TTOU ✘ 
Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Ambermoon3DMapViewer.Program.Main(String[] args)
$ IOT instruction (core dumped)  ./Ambermoon3DMapViewer --roll-forward Major

Not sure if that is my lack of skill with C# but perhaps that can be fixed somehow.

Let me know if you need any additional info!

@Pyrdacor
Copy link
Owner

Pyrdacor commented Dec 15, 2022

I never used that feature but according to the given link you have to use something like dotnet --roll-forward Major Ambermoon3DMapViewer.dll.

This is in general used by developers to run the application but when you used the published tools they won't work that way. You could try dotnet run --roll-forward Major ./Ambermoon3DMapViewer.

You also can install multiple dotnet runtimes so installing the 6.0 runtime should also work.

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

No branches or pull requests

2 participants