Reputation: 6698
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
Reputation: 46
So I have also ran into this problem. I have found a solution(it's terrible, be warned!)
Open Unity and load your solution in MonoDevelop 4.0.1 (older version you can set the target framework more easily)
Navigate to your project directory and open "Assembly-CSharp-vs" in notepad.
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
Reputation: 1
http://answers.unity3d.com/questions/176305/default-parameter-specifiers-are-not-permitted.html
Upvotes: 0