Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

Warning CS1685 as Error

Discussion in 'Scripting' started by rluks, Aug 9, 2016.

  1. rluks

    rluks

    Joined:
    Jul 16, 2015
    Posts:
    7
    I am getting warning CS1685 as Error (can not compile/run)

    Details of the message reference two files:

    1. C:\\ProgramFiles\Unity 5\Editor\Data\Mono\lib\mono\unity\System.Core.dll (Location of the symbol related to previous warning)
    2. C:\Users\Roman\Documents\savit-unity\SourcesUnity\Savit.Unity\Assets\Plugins\x86_64\Microsoft.Scripting.ExtensionAttribute.dll (Location of the symbol related to previous warning)
    And unhandled exception:

    Last line of the error message is:

    It should be only compiler warning so what does it Unity treat it like an error? More importantly what can I do about this error?

    Thank you
     
  2. jimroberts

    jimroberts

    Joined:
    Sep 4, 2014
    Posts:
    560
    ExtensionAttribute is implemented in both "System.Core.dll" and "Microsoft.Scripting.ExtensionAttribute.dll". You will need to remove one of the assembly references.
     
  3. rluks

    rluks

    Joined:
    Jul 16, 2015
    Posts:
    7
    I have tried removing the file Microsoft.Scripting.ExtensionAttribute.dll but I get errors
     
  4. jimroberts

    jimroberts

    Joined:
    Sep 4, 2014
    Posts:
    560
    Is it the same error or new errors?
     
  5. KelsoMRK

    KelsoMRK

    Joined:
    Jul 18, 2010
    Posts:
    5,468
    If you're on an older Unity version change your platform in File > Build Settings to something other than Web Player.
     
  6. rluks

    rluks

    Joined:
    Jul 16, 2015
    Posts:
    7
    I have stumbled upon this solution elsewhere, however my build target is set to PC

    New errors
     
  7. jimroberts

    jimroberts

    Joined:
    Sep 4, 2014
    Posts:
    560
    Why didn't you include the new errors with your reply..?
     
    TaleOf4Gamers likes this.
  8. KaletheQuick

    KaletheQuick

    Joined:
    Feb 12, 2016
    Posts:
    41
    I am having the same problem implementing IronPython.

    Going into the player settings API Compatibility Level to .NET 2.0, not the subset, fixed the problem.
     
unityunity