Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Error compiler using new option subtarget = (int)StandaloneBuildSubtarget.Server (Unity 2021.3)

Discussion in 'Testing & Automation' started by Eck0, Apr 22, 2022.

  1. Eck0

    Eck0

    Joined:
    Jun 6, 2017
    Posts:
    48
    Hello, when using the new option subtarget = (int)StandaloneBuildSubtarget.Server, I receive an error when compiling, which does not recognize the System.Windows.Forms library. This with the previous versions of unity that used the BuildOptions.EnableHeadlessMode command, there was no problem, how can I solve this? Here I attach the errors:
     

    Attached Files:

    • e3.png
      e3.png
      File size:
      11.1 KB
      Views:
      233
    • e2.png
      e2.png
      File size:
      19.4 KB
      Views:
      242
    • e1.png
      e1.png
      File size:
      22 KB
      Views:
      239
  2. Eck0

    Eck0

    Joined:
    Jun 6, 2017
    Posts:
    48
    nobody can help me?