I hoped that a csc.rsp with inside
-checked
would have forced the assembly to be compiled with the checked options, but it doesn’t. Can you help?
I want the following to result in an overflow exception instead to fail silently.
int a = -1;
int b = -1;
if ((b) == (uint) a)
Debug.Log(“check passed”);
Which version of .NET are you targeting? You might need to use mcs.rsp.
isn’t mcs.rsp older? Like pre-roslyn? I am using 2020.2
It depends on which version of .NET you invoke. From the manual:
Not saying this is your problem, but it’s easy to check.
thanks, as you read 3.5 is deprecated, has been deprecated for a while now.
The reason Unity Hub exists is that lots of developers need to use multiple, and often quite old, versions of Unity. Thought you might be one of them, so I suggested a possibility.
Hope you find a solution to your problem.
1 Like