The Oddler
The Oddler

Reputation: 6698

Monodevelop 4 Default Parameters c#

I'm using Unity 4.3 with Monodevelop 4.0.1 and for some reason when I Build with Monodevelop (to check for errors) it complains about default parameters. Unity does allow default parameters. In Monodevelop 2 it was possible to change the version of c#, but I can't seem to find the same setting in Monodevelop 4.

Upvotes: 1

Views: 2304

Answers (2)

user3267193
user3267193

Reputation: 46

So I have also ran into this problem. I have found a solution(it's terrible, be warned!)

  1. Open Unity and load your solution in MonoDevelop 4.0.1 (older version you can set the target framework more easily)

  2. Navigate to your project directory and open "Assembly-CSharp-vs" in notepad.

  3. Change the line "TargetFrameworkVersion" v3.5 to "TargetFrameworkVersion" v4.0

You will have to do these steps every time you load Unity(blah) but it does work.

Upvotes: 3

josh
josh

Reputation: 1

http://answers.unity3d.com/questions/176305/default-parameter-specifiers-are-not-permitted.html

  • Follow the steps in the link
  • Make sure you hit ok to save the settings.
  • Reopen the window to double check that it has saved.
  • I had to select each main "Assembly" folder and apply the change to each before it started working.

Upvotes: 0

Related Questions