Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Cant build tutorial WebGL game

Discussion in 'Web' started by dsamsonov44, Jan 6, 2021.

  1. dsamsonov44

    dsamsonov44

    Joined:
    Jan 6, 2021
    Posts:
    2
    Hello!

    I try to build my first game (FPS microgame from tutorial). Its correctly builded for PC, but fail for WebGL. I have this error:

    Exception: E:\unity\Editor\2019.4.17f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe did not run properly!

    Failed running "E:\unity\Editor\2019.4.17f1\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe" @E:/unity/Projects/shoot/sample/Temp/StagingArea/Data/Managed/response.rsp

    stdout:
    stderr:

    ����ࠡ�⠭��� �᪫���: System.IO.FileNotFoundException: �� ���� ������ � ��� ᡮ�� "netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=#token#" ���� ���� �� �� ����ᨬ��⥩. �� ���� ���� ����� �.
    � Unity.Linker.UnityDriver..ctor(String[] args)
    � Unity.Linker.Program.Main(String[] args)

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:387)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:932)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <2f1c602eae0d45c293fff3e3aef759fa>:0)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()


    What am I doing wrong?
     
  2. sumpfkraut

    sumpfkraut

    Joined:
    Jan 18, 2013
    Posts:
    242
    "System.IO" is not available in WebGL. (Local file System)
     
  3. dsamsonov44

    dsamsonov44

    Joined:
    Jan 6, 2021
    Posts:
    2
    The strange thing is that according to the task from the tutorial, i need to take this code and build it specifically for WebGL...

    Anyway thanks, now I know which direction to go
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,887
    It looks like the error message does not contain ASCII characters. Can you translate the message into English? Thanks!