Unity linker.exe not working properly

When I try to build my android project using IL2CPP scripting backend the build stop at stripping assemblies and fails and give me this error this also happens with an empty project. And I get the errors below:-

Failed running E:\2019.4.10f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe -out="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed/tempStrip" -x="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed/../platform_native_link.xml" -x=C:/Users/User/AppData/Local/Temp/tmp13f68376.tmp -x=C:/Users/User/AppData/Local/Temp/tmp40a1ce00.tmp -x="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed/TypesInScenes.xml" -d="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed" --include-unity-root-assembly="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp.dll" --include-unity-root-assembly="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.UI.dll" --include-unity-root-assembly="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed/GoogleMobileAds.dll" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed" --rule-set=Conservative --editor-data-file="E:/Unity Games/Baalveer Quiz/Temp/StagingArea/assets/bin/Data/Managed/EditorToUnityLinkerData.json" --platform=Android --engine-modules-asset-file=E:/2019.4.10f1/Editor/Data/PlaybackEngines/AndroidPlayer/Whitelists/../modules.asset

stdout:
stderr:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
   at Unity.Linker.UnityDriver..ctor(String[] args)
   at Unity.Linker.Program.Main(String[] args)

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String&, String&, IEnumerable`1, UnityLinkerRunInformation)
UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(UnityLinkerRunInformation)
UnityEditorInternal.AssemblyStripper:StripAssemblies(String, BaseUnityLinkerPlatformProvider, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel)
UnityEditorInternal.IL2CPPBuilder:Run()
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I am running into a similar problem. UnityLinker.exe will actually crash when compressing the build.

Details:

  • Unity 2019.4.6
  • .Net 4.8 installed
  • Win8.1

The error:

 --include-directory=C:/_projects/creath/trails2020/gameData/trails2020/Temp/StagingArea/Data/Managed --rule-set=Conservative --editor-data-file=C:/_projects/creath/trails2020/gameData/trails2020/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json --platform=WebGL --enable-engine-module-stripping --engine-modules-asset-file="C:/Program Files/Unity_v2019.4.6/Editor/Data/PlaybackEngines/WebGLSupport/Whitelists/../modules.asset"

stdout:
stderr:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
   at Unity.Linker.UnityDriver..ctor(String[] args)
   at Unity.Linker.Program.Main(String[] args)

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String&, String&, IEnumerable`1, UnityLinkerRunInformation)
UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(UnityLinkerRunInformation)
UnityEditorInternal.AssemblyStripper:StripAssemblies(String, BaseUnityLinkerPlatformProvider, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel)
UnityEditorInternal.IL2CPPBuilder:Run()
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Hello please anybody from unity technologies could help us please or anyone who know it’s solution. Any

This looks similar to this - https://issuetracker.unity3d.com/issues/il2cpp-webgl-slash-il2cpp-builds-fail-when-machine-doesnt-have-net-4-dot-7-2-pre-installed

A longshot, but try installing https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net472-web-installer

1 Like

Ok sir thanks I will go out and try this.