Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Resolved (Case 1387539) Cannot build custom DLL with UnityEngine.dll by using built-in msc.bat

Discussion in '2022.1 Beta' started by Kichang-Kim, Dec 10, 2021.

  1. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011
    Hi. I used Unity's built-in msc.bat for building custom DLL, which depend on UnityEngine.dll. It works without any problems when using Unity 2021.x. But with 2022.1.0b1, it failed with errors like this:

    Reported as Case 1387539.
     
    Alaadel and LeonhardP like this.
  2. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,011
    Unity recommends using Roslyn (csc.exe) from Microsoft directly. I confirmed that using csc.exe from VS 2022 with Unity 2021.2.9f1's DLLs works without any problem.
     
    Alaadel and LeonhardP like this.