RSP file type syntax

Hello,

I’m looking for some specification on the syntax, or overall format type of the *.rsp files you can place in Project/Assets in order to get global level things added to the runtime.

I know the following works for anything you’d like to define - -define:FOO, but outside of that, I have no idea what all else is possible. This Documentation is very bleak about the possibilities of this file, so I was wondering if anyone can help answer some of my questions…

Some things I’d like to know:

  • Can I add comments?
  • Can I undef anything?
  • What else besides preprocessors are allowed in there?

If you go to the editor folder you can get help for mcs.rsp files, by opening a command line and typing ‘mcs -help’.

I found it in the following folder:

  • C:\Program Files\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.5

I would like to know as well. My tests show -undefine and -undef are both unavailable.

The following list of C# compiler options (which may actually be what *.rsp files emit) shows no undefine arguments: C# Compiler Options | Microsoft Learn