Ludeon Forums

RimWorld => Mods => Help => Topic started by: Anbalsilfer on July 25, 2016, 12:21:20 PM

Title: SharpDevelop setup for modding
Post by: Anbalsilfer on July 25, 2016, 12:21:20 PM
I tried to set up SharpDevelop for RimWorld modding in order to compile Colony Manager (https://github.com/FluffierThanThou/RW_Manager (https://github.com/FluffierThanThou/RW_Manager)), in accordance with the instructions at http://rimworldwiki.com/wiki/Modding_Tutorials/Setting_up_a_solution (http://rimworldwiki.com/wiki/Modding_Tutorials/Setting_up_a_solution).

After an error message when trying to open the .sln file about missing build tools I installed msbuild 2015, which caused the error to go away, but now SharpDevelop chokes on the numerous lambda expressions in the source code, leading me to believe it is trying to compile with an outdated version. To be specific, I get CS1519 (invalid token) errors whenever the => operator appears in the source code. I've tried and failed to find help online, so now turning to the forums. Has anyone had better luck setting up SharpDevelop to compile any project that uses lambda expressions?
Title: Re: SharpDevelop setup for modding
Post by: 1000101 on July 25, 2016, 01:32:00 PM
Are you sure you want MSBuild 2015?  Xamarin Studio, for example, explicitly states it needs 2013.  Trying to use 2015 will just cause it to fail completely.

Further, SharpDevelop may simply not support lambda expressions and the source may need to be modified to remove them and turn them into their non-lambda equivalent.