New C# dev struggling to configure for linux
Hey! I'm in a course for C# development right now, but I'm having some issues configuring my machine for development.
I'm currently on Manjaro and I'm using Rider, but I'm attempting to get dotnet 6.0 and 9.0 installed on my machine (some of my course material/the repos I work from are older and target 6.0, but the coursework is for 9.0) -- I'm just having a bit of trouble getting everything configured as it should be and I'd appreciate a guiding hand in getting everything set up properly for development on linux. Thanks!!
22 Replies
Seeing how Manjaro is based on Arch, I checked the wiki: https://wiki.archlinux.org/title/.NET
Seems that
dotnet-install.sh
is the recommended way to set up multiple versions side by sidei frequently and consistently underestimate just how comprehensive the arch wiki is lmao, thank you :)
so it seems that after an install, the script sees 8.0.414 installed when attempted again, when i do
dotnet --list-sdks
it only shows 9.0, and when i do dotnet --version
it sees 6.0to clarify, the broader issue I'm trying to resolve here is that the project file for the project I forked and am working on for my class doesn't have anything set in its config, and I'm attempting to resolve this

That looks weird
FWIW,
.cshtml
is just a text file
So you can set the .NET version and everything manuallythat makes sense intuitively but i'd like to figure out what's causing this and fix that
Seeing how the
ArraysAndLists.csproj
itself looks weird in this window, I'd bet on something wrong with the .csproj file itself
Not so much a fault of the .NET installationeven if that's the case, the install script is telling me that 8.0.414 is installed when 1) i want 6.0 installed, and 2) when i do dotnet --list-sdks it only sees 9.0 installed
so I need to get 6.0 installed properly before doing anything that'll meaningfully impact this project
personally I just install the AUR versions
just compile the binary from aur?
I have
dotnet-sdk-preview-bin
, dotnet-sdk-bin
(9.0) and dotnet-sdk-8.0-bin
installedgotcha.
but you can swap
dotnet-sdk-bin
for dotnet-sdk
from extra if you want, the -bin from the AUR just updates fasterhopefully I can get this operational soon, I'm quite behind and I want to get working but i made the stupid decision of moving my laptop over to linux instead of doing things I really aught to have done lol
ah well, i appreciate the help
Not just any Linux, Arch with a coat of paint lol
yeah haha
something about learning how to swim in the deep end
ah, there's an error getting thrown when i launch rider
Unable to connect to MSBuild process to load project 'ArraysAndLists'
not entirely sure how to fix this issueHere's what I found: https://forum.manjaro.org/t/updated-jetbrains-rider-unable-to-connect-to-msbuild-process-to-load-project/174059/11
Manjaro Linux Forum
Updated Jetbrains Rider: Unable to connect to MSBuild process to lo...
Nvm, I think I have it figured out. I started cross referencing everything between by laptop an desktop and was able to kind of figure it out. I never used any repos version of dotnet, only the version that Rider installed, so Rider was managing all of the versioning. I removed all the repo versions of dotnet, reinstalled Rider, and was able to...
Seems uninstalling .NET, uninstalling Rider, reinstalling Rider, and installing .NET via Rider's popups solved it for this guy
thank you so much for the help, I didn't mean for you to end up googling the issue for me but i really appreciate you taking the time to help all the same
Install with AUR:
dotnet runtime
dotnet sdk
asp net runtime
Add dotnet to PATH
Here is straightforward guide (1.4 install multiple versions via AUR)
https://wiki.archlinux.org/title/.NET
And don’t use pacman - they have patched dotnet versions which updates time to time and you can not choose multiple bc they don’t give you a dotnet 9, instead pacman uses its own semantic versions
Or another option is to install with Microsoft install script
dotnet-install scripts - .NET CLI
Learn about the dotnet-install scripts to install the .NET SDK and the shared runtime.
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View