Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

'RoslynScripts\unity_csc.bat' not found, even after complete reinstallation

Discussion in 'Editor & General Support' started by glugau, Dec 21, 2020.

  1. glugau

    glugau

    Joined:
    Dec 18, 2020
    Posts:
    2
    Hello,
    I'm currently having some trouble with the unity engine.
    Earlier today, I wanted to build my current project. It game me an error stating:

    '[...]\RoslynScripts\unity_csc.bat' not found. Is your Unity installation corrupted?

    I reinstalled the unity version I'm working on, with no change. So I reinstalled entirely the unity version and the unity hub, and it fixed it.
    So I continue working happily on my project, until my scripts stop compiling 3 hours later and I can't add them to objects anymore. I look at the console, and sure enough, I get the same error.
    I restart unity, no change. So I look at that RoslynScripts folder, and it was, in fact, completely empty.
    I'm not aware of what it's supposed to contain, but I suppose that it was there at some point as it could compile for a few hours.
    How did it get deleted then? My antivirus? I use Avast, and I didn't get any pop ups saying it removed a file.

    Please help, I don't want to reinstall everything every 2 hours to be able to make my game.
     
  2. glugau

    glugau

    Joined:
    Dec 18, 2020
    Posts:
    2
    Well it appears that my antivirus put the file in the "quarantine zone". I took it out, it should now be fixed.