#Installing .NET 4.8 on Linux
1 messages · Page 1 of 1 (latest)
Have you tried using .net standard 2.1
Im struggling to install that too on Ubuntu. I'm on Ubuntu 24.02
I have no idea what im doing
This may help you
Haven't used the extensions they link in the post myself but they may give you a way to work in .net core at the very least and you can try go from there
Would any version of 2.1 work?
.Net framework is not available for Windows. However, you can use mono instead. I advice you to install Rider because it's free now and also has support for it, so makes the development easier
To be honest I've experienced the same issue as you, but when I found out about it, I installed Windows back
Wow...
Honestly dualbooting might be easier to set up 
Sounding like it
Otherwise i might have to get used to remotely connecting to my laptop to make a plugin and switching to my desktop to launch the server and client
Just take a look at the mono docs
🤔
You just need to install mono for .net framework development as they said yeah
No need to switch os
I'm using Rider rn and it seems to be working
And rn im trying to figure out how LabAPI works and see if i can make a plugin and test it
Good luck!
You just need to get mono project installed and if you use rider it should auto discover it
Using C# with vscode is a bit messy
Personally i tried with .NET 8.0 and it's work
Dotnet 8 doesn't work with SL apparently
I did manage to somehow get a simple print on startup plugin working once, but after a while it just stopped working for some reason
Dotnet and .NET Framework only really have one similarity between them
They use C# and mostly the same CIL
but one is a complete rewrite made with crossplatform support in mind
How? That is not supposed to be possible?
Idk but it's work, i'm shocked too
Yes but can you explain how you build using it?
It's just a normal build x)
Do you have a repo with a project file I can look at?
Ok but what exactly is the command used?
Just dotnet build?
I confused the hell out of Riptide when i told him i bulit it with 8.0 once
Just the "build" button (i'm using Rider)
Ok well that doesnt say much
Can you build it using dotnet directly instead?
Dunno, never tried
I mean try it now
Im using 4.8 now
Sky then
I'm going outside, i'm come back in 2h min
But i'll try when i go home
👍
https://github.com/Axwabo/SCPSL-Helpers/blob/labapi/Axwabo.Helpers%2FAxwabo.Helpers.csproj
You can use the latest .NET SDK to build for .NET Framework
Thanks, will have a look when I get home!
SDK-style projects are sooooo much easier to manage
@frozen geyser showed me this
Before that I just let Rider manage the csproj files xd
Yeah the only issue I have had in rider is that it breaks completely if you have a dotnet and mono project in the same solution
So it would be nice to solve that
Haven't tried that yet
But the CLI works, right?
Well no, I have to build one using mono and one using dotnet
Yup, here is the one with normal and one for publizing stuff
I dont use mono (nor have installed).
if you reference to that will see what can do with it
Great, sounds good
Yeah, .NET Framework is kinda weird one i have only .NET installed but I can compile to .NET framework just fine on my fedora laptop
"/usr/lib/dotnet/dotnet exec "/usr/lib/dotnet/sdk/8.0.112/Roslyn/bincore/csc.dll" /noconfig /unsafe (blablabla)" so yes it use dotnet
Fedora user found 🚨
Does Discord work well for you?
When I had fedora, I experienced some problems with voice chats
I think it's fine
I can recommend the Vesktop client. That fixes most problems I had with the default Discord client like screen sharing not working
netstandard2.1 isn't compatible with net48, which labapi uses i think, use netstandard2.0 instead
however, it is possible to use net48 on linux
just install the net9.0 sdk, on arch(btw) theyre these packages: dotnet-targeting-pack dotnet-sdk dotnet-host dotnet-runtime
and then through an ide(im using rider), you can create a class library using the net9.0 sdk, and then change the target framework to either netframework2.0 or net48
2.1 works although your IDE will complain
some features are available in 2.1, but aren't available in 4.8 which might cause runtime issues that you will run into
for example system.net.http
you should reference the one the game provides which is compatible on both versions
im going to try it out, see if it does work
Was quite certain until now that building with .net (core) basically just called .net framework msbuild under the hood and using it on linux meant mono (like unity does)
it didn't work for me, i have to add a system.net.http nuget package and add it as depend to work
maybe its just because i am on linux and netframework libraries just arent available for me
SCPSL_Data/Managed/System.Net.Http.dll
Use that file
i just hit the limits of using .NET 8.0
unfortunatly
idk what you mean
what limit?
we can use net 8.0 if we not importing System.Collections
cool, but why would you do that
I remember I could compile .net 4.8 on Linux just fine
ye i can now
just rider was shiting or idk but he needed a restart
fun
I don't use RIder anymore and I do dotnet build -c Release for everything, lol
so what are you using ?
visual studio ?
I think purple vs code and rider eat more, but whatever
the thing is, I don't need their features very much
VS code is a text editor, VS and Rider is an IDE
it's just logic taht both take more Ram and Cpu than VS Code
well, plain VS code for C# is shit, but one extension fixes that
notepad for the win
I tired all 3 and I think Rider is the best for most people, especialy since they make it "free" to use
THEY MAKE IT FREE ?
NO FUCKING WAY
only for non commercial
^
the student version too
and i use the student version
i dont use it
well i'ts a good thing
vs started faster than rider
vs eat more ram than rider 
i don't have ram
and because of this rider start faster than cs for me
vs*
well my chore tab eat more than vs so
Those are servers
Made an infinite loop by accident, fun
Funny