Ambermoon icon indicating copy to clipboard operation
Ambermoon copied to clipboard

[Bug Report] Ambermoon Tools - Linux .NET update

Open TobiasReich opened this issue 2 years ago • 1 comments

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!

TobiasReich avatar Dec 14 '22 15:12 TobiasReich

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.

Pyrdacor avatar Dec 15 '22 21:12 Pyrdacor