Skip to content

C# development

Hey there

So, we're merging with another company at my job and we're going to be doing some C# development. I said I'm all down with it even though I'm on Linux because I had read about mono, monodevelop, mcs and CLI being available for my OS. I even got my nvim to kinda do some autocompletion and could compile a HelloWorld.cs into an exe but I realized I will be dealing with Windows Forms and stuff so I really need a full out-of-the-box IDE that can deal these requirements. I'd absolutely dread to use a VM and install some god forsaken Windows version. Monodevelop seemed the best choice so I tried downloading from the AUR with yay monodevelop-stable, but I get a failed build:

Installed:
    177 package(s) to packages.config projects
make[2]: *** [Makefile:1147: restore-packages] Error 1
make[2]: Leaving directory '/home/nexor/.cache/yay/monodevelop-stable/src/monodevelop/main'
make[1]: *** [Makefile:675: all-recursive] Error 1
make[1]: Leaving directory '/home/nexor/.cache/yay/monodevelop-stable/src/monodevelop/main'
make: *** [Makefile:47: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
Error making: monodevelop-stable

I wonder if anyone has gone through the same, how do you do C# development in your setup? Do I have to install monodevelop? If so, how can I?

Cheers

EDIT:

Ended up downloading monodevelop-stable-bin and it didn't work at first. Then I checked the comments in the AUR page that said to disable version control. It worked. Now I'm trying to run a program but the menu item is disabled. Damn all of this seems so fragile. It is also not finding .NET Core Command Line (even when I set it to $(whereis dotnet))

EDIT2:

I'm not the only one with this problem

EDIT3:

rider too was unable to locate dotnet executable.

EDIT4:

I give up, I'll quit my job monday

Edited 20 Jan 2019. We only hold this version.

6 points21 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
6 · 100% up
Kind
Text
ID
ahs88b

Author

39
posts
206
comments
8
media
View profile

22 comments

I'll probably get some downvotes, but here goes.

The Linux enthusiast in me says fight the good fight and contribute to making the dotnet tooling better on Linux.

The pragmatist in me says, install Visual Studio on a VM or dual boot, because my employer expects me to write code, not wrestle with workarounds to get my special use-case toolset working.

25 points

that's so sad

I'll quit my job tomorrow

can we stop buying micro$oft stuff now?

4 points

If you are that concerned about Microsoft stuff, I would have suggested not even bothering with C# at all. Any contributions to getting that working better on Linux is effectively doing Microsoft's work for them.

But on the other hand, maybe try to be a little practical. Quitting your job because they are shifting to a language with poor Linux support might not be the best way to keep food on the table. If you are serious about it, find another job before quitting the one you already have.

3 points

Ask your company if they're using JetBrains products like ReSharper. If they do, ask if they could also include Rider, a C# IDE using Java this running on all OSs.

4 points
unknown author

Deleted before we saved it.

1 points

Just Set up a Windows VM and install Visual Studio on it. Otherwise you're just going to spend a lot of hours getting shit work instead of doing the real work.

Both Mono and .Net Core aren't really all that good at targeting Windows, especially when GUI is required, and even more so when you need to work in a team and not everyone uses Linux for development.

3 points

If you haven't already, I would check the comments on the AUR page. You may also want to try installing monodevelop-stable-bin, could have less issues.

I only have experience writing C# using .NET Core, but it seems like to use WinForms you'll first have to port your app to Mono. This page might help.

1 points

We're starting from scratch. We were on Java but they think it's outdated. They may be right. In a sense. But thanks for the resources. In the Arch wiki they mention monodevelop-stable but no monodevelop-stable-bin. How can I trust that package?

1 points

rider was unable to find dotnet

the dotnet executable in /usr/bin is a script, not the actual binary. that should be in /opt/dotnet

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.