Ubuntu 23.04 Command Line ONLY

I have tried installing .net frameworkv4.8 in various ways to no possibility of getting it installed. I have tried the following ways:
Download Stable Mono - Download - Stable | Mono
Installed Wine - https://wiki.winehq.org/Ubuntu
I even tried WineTricks - https://tutorialforlinux.com/2022/04/29/winetricks-ubuntu-22-04-installation-step-by-step/
And many different ways which are too many to list here.

No matter which way I tried, nothing. Which leads me back to here, asking for help.
So, I rebooted the server and the computer itself.
Issued the command: dotnet build -c Release

And out comes this little error:
The command could not be loaded, possibly because:
* You intended to execute a .NET application:
The application 'build' does not exist.
* You intended to execute a .NET SDK command:
No .NET SDKs were found.