Search Unity

  1. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Monodevelop build errors (Error CS0518)

Discussion in 'Linux Editor' started by rootPL, Apr 26, 2017.

  1. rootPL


    Sep 5, 2015

    I had 31 errors during build of empty project.
    Unity version: 5.6.0xf3

    There is similar issue registered:

    Also I saw similar topic here: marked as [SOLVED] but solution of installing: sudo apt-get install mono-complete gnome-sharp2 doesn't seems to work for me as I have already newest version of mono-complete 4.2.1 and version of monodevelop 5.10

    My temporary solution is to change csproj file
    From: <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    To: <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    Or it can be changed using:
    Project -> Assemby-CSharp Options -> Build -> General -> Target ->framework Mono/.Net 4.5

    But each time I'm opening monodevelop from Unity this value is overridden back to 3.5
    Anyone knows how to set it permamently ?

    Screenshot from 2017-04-26 11-13-50.png
    Last edited: Apr 28, 2017
  2. Bshsf_9527


    Sep 6, 2017
    have you solved this problem ?
    maybe this link may help you ~
    Compiler Error CS0518 | Microsoft Docs

    it says that you project has missing some reference of some dlls such as "mscorlib.dll"
    you can find this dll in the path of you unity install dir