I am trying to make a build for Oculus Quest form a game I have tryed to make. But I keep getting the above error when I use te build and run command in , or just the build command … I found out through google that is refers to the used compiller. I saw that my unity uses mcs.rsp instead of csc.rsp … But I can’t find anywhere on the Internet , how to switch my unity tot scs.rsp … Is there anyone who had the same problem and willing to let me in on the secret?
Thanx in advance
Remco
You haven’t mentioned where these rsp files are coming from, what version of Unity you are using, what is giving you this error exactly, etc. But the below was the very first google result, and seems to explain pretty clearly under what settings does Unity need one or the other.
That part is also what I found , and I know Unity needs crc.rsp in my case. But in my Asset folder there is only mcs.rsp and I can not find the other one … Also I can not find it anywhere , as to how to change my version to the csc.rsp version … What ever I have tryed to change in the build settings , there is never a csc.rsp file in my asset folder , and thus the error keeps comming up when I try to build the APK for my Oculus. I am quit new to Unity (started in Dec last year) … Thanx for taking the time to help
Why do you even add this file? It doesn’t come with a new project. You added it for some reason.
Figure out why you added it, and why you need it. If it came from some 3rd party asset then check if there is a newer version of the asset or support for updating it. Worst case you’ll need to figure out exactly what it does, and either rewrite it so it works for you, or design around it so you no longer need it.
I found the solution , I just added a file called csc.rsp in the assets folder and copied the content from the mcs.rsp file into it and now I can build tha apk
Thanx for your time
The .rsp file should match the C# compiler name. Unity had switched from Mono C# compiler (called “mcs.exe”) to the Microsoft’s one (called “csc.exe”) a while ago, so you could also just rename mcs.rsp to csc.rsp. There’s no point in keeping mcs.rsp in the project.