C
C#2w ago
Pixel

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
Angius
Angius2w ago
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 side
Pixel
PixelOP2w ago
i 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.0
Pixel
PixelOP2w ago
to 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
No description
Angius
Angius2w ago
That looks weird FWIW, .cshtml is just a text file So you can set the .NET version and everything manually
Pixel
PixelOP2w ago
that makes sense intuitively but i'd like to figure out what's causing this and fix that
Angius
Angius2w ago
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 installation
Pixel
PixelOP2w ago
even 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
Aaron
Aaron2w ago
personally I just install the AUR versions
Pixel
PixelOP2w ago
just compile the binary from aur?
Aaron
Aaron2w ago
I have dotnet-sdk-preview-bin, dotnet-sdk-bin (9.0) and dotnet-sdk-8.0-bin installed
Pixel
PixelOP2w ago
gotcha.
Aaron
Aaron2w ago
but you can swap dotnet-sdk-bin for dotnet-sdk from extra if you want, the -bin from the AUR just updates faster
Pixel
PixelOP2w ago
hopefully 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
Angius
Angius2w ago
Not just any Linux, Arch with a coat of paint lol
Pixel
PixelOP2w ago
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 issue
Angius
Angius2w ago
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...
Angius
Angius2w ago
Seems uninstalling .NET, uninstalling Rider, reinstalling Rider, and installing .NET via Rider's popups solved it for this guy
Pixel
PixelOP2w ago
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
kurumi
kurumi2w ago
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
kurumi
kurumi2w ago
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
kurumi
kurumi2w ago
dotnet-install scripts - .NET CLI
Learn about the dotnet-install scripts to install the .NET SDK and the shared runtime.
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?