Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question I cannot build my 3D game to Standalone Windows

Discussion in 'Windows' started by WASD098, Jan 13, 2021.

  1. WASD098

    WASD098

    Joined:
    Aug 24, 2020
    Posts:
    15
    Whenever I try to build a 3D game to Standalone Windows it shows up with these messages.

    Exception: C:\Program Files\Unity\Hub\Editor\2019.4.16f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!

    Build completed with a result of 'Failed' in 23 seconds (22594 ms)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
     
  2. WASD098

    WASD098

    Joined:
    Aug 24, 2020
    Posts:
    15
    I am using Unity 2019.4.16f1
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,756
    Can you post your editor log?
     
  4. WASD098

    WASD098

    Joined:
    Aug 24, 2020
    Posts:
    15
    Where is that?
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,756
    C:\Users\<username>\AppData\Local\Unity\Editor\Editor.log
     
  6. WASD098

    WASD098

    Joined:
    Aug 24, 2020
    Posts:
    15
    I can't seem to find that path on my system
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,756
    You can also open it via the editor via the button on the upper-right corner of the console window.
     
  8. WASD098

    WASD098

    Joined:
    Aug 24, 2020
    Posts:
    15
    Thanks. So should I just post the entire editor log or just part of it?
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,756
    All of it. Attach it as a file.
     
  10. WASD098

    WASD098

    Joined:
    Aug 24, 2020
    Posts:
    15
    Ok this is the editor log
     

    Attached Files:

  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,756
    It doesn't look like the log contains any failures for building the player. Did you make the build fail before grabbing it?
     
  12. merledewitt3

    merledewitt3

    Joined:
    Dec 7, 2020
    Posts:
    2
    I am getting the same issue in 2019.4.18f1. I am uploading the editor log from right after I attempted a build.
     

    Attached Files:

  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,756
    Looks like you're missing Windows 10 SDK:

    Code (csharp):
    1. Unhandled Exception: System.InvalidOperationException: C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
    2.         Visual Studio 2015 with C++ compilers and Windows 10 SDK (it cannot build C++ code because it is not installed or missing C++ workload component)
    3.         Visual Studio 2015 installation is found by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry
    4.         Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry
    5.  
    6.         Visual Studio 2017 (or newer) with C++ compilers and Windows 10 SDK (it cannot build C++ code because Windows 10 SDK is not installed. You can install from here: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/)
    7.         Visual Studio 2017 (or newer) installation is found using Microsoft.VisualStudio.Setup.Configuration COM APIs
    8.         Windows 10 SDK is found by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry
    You can install from here: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/
     
  14. merledewitt3

    merledewitt3

    Joined:
    Dec 7, 2020
    Posts:
    2
    It worked thank you.
     
  15. WASD098

    WASD098

    Joined:
    Aug 24, 2020
    Posts:
    15
    It worked for me as well. Thank you.