This is my problem. I was working fine with Monodevelop until today. when I was going to compile a code the follwing error message came: The Compiler appears to have crashed. Check the build output pad for details. on the output pad here`s what it says: Water3.cs(329,54): error CS0241: Can`t allow specific default parameters.
and somtimes it says something with not having gtk2# or something like that..
since then I can`t use Monodevelop. With Uniscite everything works fine, but With Monodevelop, nothing compiles, even new projects.
Thank you for your help
Answer by testure
Jul 30, 2011 at 04:49 PM
I had a similar issue with MonoDevelop before, though it was slightly different- I got some random error that didn't make sense in the context of my code, then it crashed. When I tried to rerun it, nothing worked correctly.
Ultimately how I fixed it was to reboot my computer. Not sure if MonoDevelop has some sort of service or process that runs in the background or whatever, but after the reboot everything worked fine for me (and I was getting ready to reinstall it, so that saved me some headaches).
Answer by Georgeiv
Jul 30, 2011 at 04:53 PM
I solved it, sorry I changed users, had a problem with the other.
to solve the problem I had to reimport all default assets and then monodevelop started compiling normally.
Answer by jite
Aug 01, 2012 at 03:39 PM
Addition on case if you got error CS0241 in Monodevelop only, but in Unity all is OK. Probably MonoDevelop work with .NET runtime which don't support C# 4.0 by default. (See in MonoDevelop's main menu Tools\\Options\\Preferences\.NET Runtimes)
You need to install latest version of Mono. Since Mono 2.8 the support of C# 4.0 is enabled. In MonoDevelop new runtime item must to appear automatically - set this by default and errors will disappear.
Answer by vendetta1987
May 15, 2013 at 10:07 AM
Also make sure to set the target framework correctly by right clicking Assembly-C Sharp-Editor in the Solution View and then choosing options. You'll find it in the popup menu under Build -> General. It was set to 3.5 for me somehow and caused the error.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
6 People are following this question.
Controlling Shadow Resolution Quality in script?
Activating another script by clicking a button?
Enable/Disable the NavmeshAgent programatically?
Script for collectiong keys to escape
Where have I gone wrong with my Script?