- Home /
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?
Answer by turbanov · Feb 04, 2016 at 11:45 AM
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: https://msdn.microsoft.com/en-us/library/6ds95cz0.aspx
From some experimentation, you are correct. From that list, just replace the slash with a dash, and each arg as a new line.
So, warning level 4, and all warnings as errors would be:
-warn:4
-warnaserror+
Answer by WeirdBeardDev · Apr 25, 2019 at 03:15 AM
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
Your answer
Follow this Question
Related Questions
Possible to "or" two preprocessor directives together? 1 Answer
app with with multiple independent games 0 Answers
preprocessor directivities with JavaScript 2 Answers
What does UNITY5_SCRIPTING_IN_UNITY4 mean? 1 Answer
AddForce in z axis 1 Answer