Search Unity

Feature request: Specify symbols and suppress warnings in asmdef

Discussion in 'Editor & General Support' started by xmedeko, Mar 20, 2019.

  1. xmedeko

    xmedeko

    Joined:
    Jun 6, 2018
    Posts:
    23
    Specify symbols and suppress warnings in asmdef

    asmdef is a great way how to separate code to modules, especially 3rd party assets. However, these assets sometimes require certain C# define symbols to work and sometimes they produce a lot of warnings. Currently, I have to:
    - Specify
    csc.rsp
    with -define and -noward
    - Make not trivial hook to
    ProjectFilesGenerator.ProjectFileGeneration
    to suppress warnings in VS, too.

    It would be great to have possibility to specify this in asmdef, like the "unsafe" flag.
     
    SAPHNoll and Xarbrough like this.
  2. JohnAustinPontoco

    JohnAustinPontoco

    Joined:
    Dec 23, 2013
    Posts:
    283