Forum Home › Forums › Development and Integration › Running .net8 assembly with mono installed
Tagged: dotnet, linux, mono, ScadaAdmin
- This topic has 3 replies, 2 voices, and was last updated 1 year, 9 months ago by
Mikhail.
-
AuthorPosts
-
February 18, 2024 at 9:41 am #14068
zzz
Participant$…/scada-v6/ScadaAdmin/ScadaAdmin/ScadaAdmin/bin/Release/net8.0-windows$ dotnet ./ScadaAdmin.dll
You must install or update .NET to run this application.
App: …/scada-v6/ScadaAdmin/ScadaAdmin/ScadaAdmin/bin/Release/net8.0-windows/ScadaAdmin
Architecture: x64
Framework: ‘Microsoft.WindowsDesktop.App’, version ‘8.0.0’ (x64)
.NET location: /usr/share/dotnetHi Mik, how are you. Does this work the same way for you ?
I already have dotnet 8 installed, otherwise I wouldn’t be able to compile it. Plus it works on windows with dotnet8 RT installed.
I have mono installed to test and debug for existing RS5 instance on Linux. I suspect it’s mono fiddling with the dotnet assembly. If so, is there anyway around this ?
February 19, 2024 at 9:53 am #14070
MikhailModeratorHi,
I’m good. Thank you. Hope you are well too.
You could try to run ScadaAdmin by the command
dotnet ScadaAdmin.dll
to be sure that it is not run under Mono.Is it on Windows?
February 21, 2024 at 4:05 am #14072zzz
ParticipantOK, there are some path issue when running with
wine dotnet ScadaAdmin.dll.
No language file is loaded, on both wine and windows. I guess some path func changed behaviour.
(Also clicking on any menu will lead to crash, which only happens on wine).
On Windows if I click Tools>Language, an error pops up:[Error Caption] [LoadCultureError]: Can not find a part of the path c:\program files\dotnet\langBut
publish ... --os windoes create an exe that I can run under wine. With theScadaAdmin.exeloader running from the same path setup, everything works ok on both Linux/wine and Windows.With mono I can’t execute any linux native loader for dotnet assembly, e.g.
ScadaAdminScadaServer. I guess it’s not possible to work around this without issue (considering the above path issue without loader).This is not a bug report but more of an observation though.
-
This reply was modified 1 year, 9 months ago by
zzz.
February 21, 2024 at 8:58 am #14076
MikhailModeratorI suppose, Mono is outdated.
To use ScadaAdmin with Wine, build it using the following command:dotnet publish ScadaAdmin.sln -c Release -r win-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true
-
This reply was modified 1 year, 9 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.