-
Notifications
You must be signed in to change notification settings - Fork 45
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
What would it take to update to a newer .NET version? #438
Comments
Well SampSharp on main branch is targeting net 6 and the nuget package from what i see is net standard 2.1 Basically it takes nothing apart from updating to the latest nuget package of SampSharp and changing your project to target a newer net version, no need to change anything for it to work |
Hi Ciprian, thanks for the quick answer! I haven't tried this yet because I don't have a Linux machine available, but theoretically, if I targetted .NET 8, and put the x32 Linux runtime of .NET 8 in my "runtime" folder for my samp server, would it then run just fine on .NET 8? |
Yes, it will just be fine |
SampSharp is supporting .NET 8 , i test it and it's working |
Many thanks |
Sorry to bring this up again, but may I ask, where did you find an x86 build of .NET 8? Seems the official download is only x64 |
go to this repository [https://github.com/Servarr/dotnet-linux-x86](NET 8 x86_64 Linux Unofficial Build) |
Very nice, thanks once again. |
@LYZENCORE-9 @markski1 I can't run dotnet linux x86 for .net 8 (https://github.com/Servarr/dotnet-linux-x86/releases/tag/v8.0.4-90). I'm testing it on a VPS with ubuntu 20.04 but it does not run gamemode: As shown in the image, it keeps initializing the runtime and from there it does nothing, the server never starts. Do you know what it could be? |
@MrDave1999 I ran into the same problem and sadly did not have enough free time to troubleshoot it. It seems to balloon in commit memory size until it crashes out. Very strange |
Yes, that's the problem: Servarr/dotnet-linux-x86#5 (comment) |
weird , i use this runtimes in my server at my home and it works |
Also running into this issue where it is initializing the runtime, consumes all memory briefly and then kills the process. Any known solutions would be greatly appreciated! |
@KoertLichtendonk I have not found any solution. The only thing we could do is to manually compile the runtime .net 8.0 for an x86 machine. |
Based on my recent experiences, using updated versions of .NET is only possible on Windows servers. Servers running Linux unfortunately still need to use .NET 6 with the https://github.com/Servarr/dotnet-linux-x86/releases/tag/v6.0.35-97 runtime. I think the one way to solve this problem once and for all would be to use Open.mp in 64 bits and use .NET x64. I don't know if this is possible yet, but I see that finding a .NET 8 x86 runtime that works would only be a pothole filler because we would have the problem happening with each new .NET version, so we would always need a compilation of the working x86 runtime. Yes, this is very boring, Microsoft unfortunately does not support 32-bit Linux so we will not have x86 being provided by them officially. |
@Duduzera1997 @MrDave1999 |
Hello, my question is basically the title. Imagine I wanted to update SampSharp for targetting .NET 8, what would need to be changed? Would it require a rewrite of the library or minor things?
It catches my eye that the default Project package targets .NET Core 3.1, despite this library not seeming abandoned, so I was wondering how viable would it be to try and bring it up to date
The text was updated successfully, but these errors were encountered: