Ludeon Forums

Ludeon Forums

  • August 05, 2021, 08:16:21 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: [Tutorial] Monodevelop and .NET 3.5 on Debian based Linux (Eg: Ubuntu)  (Read 21776 times)

lperkins2

  • Drifter
  • **
  • Posts: 59
  • Refugee
    • View Profile

On debian based systems, just install mono-reference-assemblies-3.5
It worked for me anyway, in a debian-testing chroot.  Other distros can theoretically get the reference assemblies from the mono git repository, but I'm not sure where to install them.
Logged

LWM

  • Planetologist
  • ****
  • Posts: 1083
  • Little White Mouse
    • View Profile
Re: [Tutorial] Monodevelop and .NET 3.5 on Debian based Linux (Eg: Ubuntu)
« Reply #16 on: December 27, 2018, 08:30:02 PM »

For what it's worth, I'm running SolydXK, which is Ubutu-ish and based on Debian.  I didn't have a functional mono installation available from my default repositories.

I have added the following repository (using Synaptic, which is my usual package manager of choice):
  http://download.mono-project.com/repo/ubuntu/
  vs-trusty
  main

Then I installed 'monodevelop' and lo! it works.

I have found that the windows program dnSpy is fantastically superior to anything I could get running easily under Linux, and as I can duel boot, I stopped looking.  I don't know if it runs under wine, but it works better than mono at dealing with assemblies, and I just export stuff and then reboot to do actual work on it with mono.

--LWM
Logged

lperkins2

  • Drifter
  • **
  • Posts: 59
  • Refugee
    • View Profile
Re: [Tutorial] Monodevelop and .NET 3.5 on Debian based Linux (Eg: Ubuntu)
« Reply #17 on: January 17, 2019, 08:54:43 PM »

JetBrains Rider seems to do a good job for exploring assemblies, but it's kinda spendy.  I used it for the 30 day trial, and wish they had a community version like for their other IDEs.

On the topic of mono versions, I've taken to invoking mcs with -notstdlib, and then listing the specific system libraries I want used (RimWorld/RimWorldLinux_Data/Managed/System.dll et cetera).  This seems to be the most stable way to get the right versions of things (3.5 for RimWorld, 4.something for MonoGame projects). 

The full command is something like
mcs -nostdlib -target:library -out:../Assemblies/ModName.dll `find . | grep cs$` `for f in $Reference/*dll; do echo -r:$f; done;`

Where Reference points to the Managed folder (or wherever the appropriate mono system libraries are located).
Logged

llunak

  • Muffalo
  • *
  • Posts: 13
  • Refugee
    • View Profile

These instructions appear to be outdated by now (RimWorld now uses .NET 4.7.2 and not 3.5, and there has not been a stable release of MonoDevelop for over two years, so it possibly may not work on latest distributions). If you'd like to mod RimWorld on Linux and cannot get it to work using these instructions, I've added my way to the wiki : https://rimworldwiki.com/wiki/Modding_Tutorials/Setting_up_a_solution#Mono
Logged
Pages: 1 [2]