Open jmle opened 1 year ago
Have you tried Mono?
jmle@fedora ~/Dev/jmle dotnet --version
6.0.406
jmle@fedora ~/Dev/jmle/Project-Nested master dotnet build Project\ Nested.sln
MSBuild version 17.3.2+561848881 for .NET
Determining projects to restore...
Nothing to do. None of the projects specified contain packages to restore.
/home/jmle/.dotnet/sdk/6.0.406/Microsoft.Common.CurrentVersion.targets(1220,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.6.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/home/jmle/Dev/jmle/Project-Nested/Project Nested/Project Nested.csproj]
Build FAILED.
Not sure if that particular developer pack is available for linux - I am a total ignorant in terms of Microsoft development... Would it be difficult for me to retarget the project?
Yep, looks like that particular version is windows-only
Mono should be able to run the exe directly. I don't remember how to do it but it should work for Project Nested.
Looks like you're trying to build this with a more recent version of .net than the project requires.
I have tried mono on ubuntu 22.04, but it crashes upon opening the Nes file with following error:
$ mono Project_Nested.exe
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.Substring (System.Int32 startIndex, System.Int32 length) [0x0003a] in <12b418a7818c4ca0893feeaaf67f1e7f>:0
at Project_Nested.Form1.btnOpen_Click (System.Object sender, System.EventArgs e) [0x0004e] in <9de7548114064813abfbfd65adc756f4>:0
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x0001c] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00024] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.ButtonBase.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00081] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x0007e] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016f] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) [0x0004e] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <a3daa9b84fd241a497578a25f68bc3c7>:0
at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x0008e] in <a3daa9b84fd241a497578a25f68bc3c7>:0
@asoderq this was a while ago, but probably something similar happened to me.
First of all, thank you for all your efforts, this is a great project.
I was entertaining the though of porting the tool to Java with a command-line interface to be able to do bulk processing. So far I haven't been able to run it, since I don't have a Windows machine (tried with wine with no success). I was thinking that, excluding the code for the forms, the rest should be more or less straightforward to port. Is my assumption correct? I would be grateful for any info around this that you could give me.
Thank you again.