.NetCore support #1732
Replies: 6 comments 16 replies
-
What does .NET core actually buy anybody? Mono is easy to install and seems to work fine to me? |
Beta Was this translation helpful? Give feedback.
-
I've changed both targets to AnyCPU and it seems did no damage to compatability, x86 plugins works normally on x64 runtime. |
Beta Was this translation helpful? Give feedback.
-
Okay so honestly, since you're actually on the team: you have the power and authority to decide that we have a .NET core version. In an ideal world, we would offer both a .NET core and a classic version, or at least switch to .NET core when we know for certain it has full support. If you want to get this into master/gen-dev, you need to:
Honestly if you got everything done and provided people with instructions on what to do and migrate and all that, we could pretty easily just accept the PR and transition it to full support. |
Beta Was this translation helpful? Give feedback.
-
Just FYI, it's very possible to publish this as an independent binary without any references required. An additional benefit to this is not requiring Mono or netcore on release binaries. Based on the build instructions, something like this should be within the realm of possibility. dotnet publish ./TShockAPI/TShockAPI.csproj -r win-x64 -c Release /p:PublishSingleFile=true
dotnet publish ./TShockAPI/TShockAPI.csproj -r linux-x64 -c Release /p:PublishSingleFile=true (More RIDs are available as needed; RPI support sounds like a stellar idea, something that's normally improbable due to mono's requirements.) I'm in full support of this venture; good luck. |
Beta Was this translation helpful? Give feedback.
-
Upside of .NET Core is that all the ugly mono hacks you've been using can be phased out. On .NET Core 3+, .NET Framework apps run almost out of the box since all Windows.Forms etc. references were reimplemented and are re-routed by the runtime. |
Beta Was this translation helpful? Give feedback.
-
Hi, just my two cents, if you're going to be doing single file releases of TShock, make sure that you aren't bundling the entirety of .NET Core during your build process otherwise you're going to make giant files. My personal recommendation is a cross platform binary since people, who are going to be installing .NET Core anyway, can just run it with Another thing I recommend is enabling the trimmer. It gets rid of any unnecessary assemblies that may get bundled but never actually get used when publishing. Good luck! |
Beta Was this translation helpful? Give feedback.
-
I simply ported tshock to .netcore today, strictly, it's multi-targeted, support .netfx4.7.2 and .netcore3.1. It works properly as far as I can see. But references of .netfx need more polishment to keep compatibility of current plugins.
Beta Was this translation helpful? Give feedback.
All reactions