Skip to content

WebGL build issue #10

Closed
Closed

Description

@mgulatichicmic

I opened the project in Unity 2019.3.12f1 and when I try to create a WebGL build, I get the following errors:

Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\CecilUtils.cs(6,13): error CS0234: The type or namespace name 'Cecil' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\InterfaceGen.cs(5,17): error CS0234: The type or namespace name 'Build' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\InterfaceGen.cs(9,13): error CS0234: The type or namespace name 'Entities' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\InterfaceGen.cs(10,13): error CS0234: The type or namespace name 'Cecil' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\TypeRegGen.cs(8,13): error CS0234: The type or namespace name 'Entities' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\TypeRegGen.cs(13,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\TypeRegGen.cs(64,51): error CS0246: The type or namespace name 'JsonTextWriter' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\TypeRegGen.cs(70,59): error CS0246: The type or namespace name 'JsonTextWriter' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\TypeRegGen.cs(76,58): error CS0246: The type or namespace name 'JsonTextWriter' could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.dots.runtime@0.25.0-preview\TypeRegGen\TypeRegGen.cs(82,64): error CS0246: The type or namespace name 'JsonTextWriter' could not be found (are you missing a using directive or an assembly reference?)
Error building Player because scripts had compiler errors
Build completed with a result of 'Failed' in 5 seconds (4542 ms)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 11 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Kindly suggest ways to create a successful build

Activity

  1. mgulatichicmic commented on May 18, 2020

    @mgulatichicmic
    Author

    It came to my notice that I have to use the configuration files inside Assets -> BuildConfigurations for creating Build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions