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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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:
    888
    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:
    888
    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.