Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Resolved HELP .. Using obsolete custom response file 'mcs.rsp'. Please use 'csc.rsp' instead

Discussion in 'Scripting' started by Mrlamb4u, Mar 10, 2021.

  1. Mrlamb4u

    Mrlamb4u

    Joined:
    Dec 27, 2020
    Posts:
    5
    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
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    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.

    https://docs.unity3d.com/Manual/PlatformDependentCompilation.html
     
  3. Mrlamb4u

    Mrlamb4u

    Joined:
    Dec 27, 2020
    Posts:
    5
    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
     
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    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.
     
  5. Mrlamb4u

    Mrlamb4u

    Joined:
    Dec 27, 2020
    Posts:
    5
    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
     
  6. alexzzzz

    alexzzzz

    Joined:
    Nov 20, 2010
    Posts:
    1,447
    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.
     
    Jointuletz likes this.