Search Unity

Monodevelop build errors (Error CS0518)

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

  1. rootPL

    rootPL

    Joined:
    Sep 5, 2015
    Posts:
    14
    Hi,

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

    There is similar issue registered: https://issuetracker.unity3d.com/is...e-monodevelop-on-os-x-produces-lots-of-errors

    Also I saw similar topic here: https://forum.unity3d.com/threads/solved-dependencies-not-installed.435441 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

    Bshsf_9527

    Joined:
    Sep 6, 2017
    Posts:
    5
    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