🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Standalone Build Error in Unity

Started by
2 comments, last by frob 4 years, 6 months ago

Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)

Copyright (C) Microsoft Corporation. All rights reserved.


error CS0009: Metadata file 'E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\mono\Managed\UnityEngine.XRModule.dll' could not be opened -- An attempt was made to move the file pointer before the beginning of the file

error CS0009: Metadata file 'E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\mono\Managed\UnityEngine.UNETModule.dll' could not be opened -- An attempt was made to move the file pointer before the beginning of the file

error CS0009: Metadata file 'E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\mono\Managed\UnityEngine.TerrainModule.dll' could not be opened -- An attempt was made to move the file pointer before the beginning of the file

error CS0009: Metadata file 'E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\mono\Managed\UnityEngine.Physics2DModule.dll' could not be opened -- An attempt was made to move the file pointer before the beginning of the file

error CS0009: Metadata file 'E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\mono\Managed\UnityEngine.PhysicsModule.dll' could not be opened -- An attempt was made to move the file pointer before the beginning of the file

error CS0009: Metadata file 'E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\mono\Managed\UnityEngine.dll' could not be opened -- An attempt was made to move the file pointer before the beginning of the file



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\Raycasters\Physics2DRaycaster.cs(16,9): error CS0246: The type or namespace name 'RaycastHit2D' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\Raycasters\PhysicsRaycaster.cs(36,9): error CS0246: The type or namespace name 'RaycastHit' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\Raycasters\PhysicsRaycaster.cs(189,54): error CS0246: The type or namespace name 'RaycastHit' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\Raycasters\PhysicsRaycaster.cs(192,32): error CS0246: The type or namespace name 'RaycastHit' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\EventSystem\Raycasters\PhysicsRaycaster.cs(192,46): error CS0246: The type or namespace name 'RaycastHit' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Utility\ReflectionMethodsCache.cs(9,59): error CS0246: The type or namespace name 'RaycastHit' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Utility\ReflectionMethodsCache.cs(10,25): error CS0246: The type or namespace name 'RaycastHit2D' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Utility\ReflectionMethodsCache.cs(11,25): error CS0246: The type or namespace name 'RaycastHit' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Utility\ReflectionMethodsCache.cs(12,25): error CS0246: The type or namespace name 'RaycastHit2D' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Utility\ReflectionMethodsCache.cs(13,74): error CS0246: The type or namespace name 'RaycastHit2D' could not be found (are you missing a using directive or an assembly reference?)



E:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\Utility\ReflectionMethodsCache.cs(14,63): error CS0246: The type or namespace name 'RaycastHit' 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'

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)



UnityEditor.BuildPlayerWindow+BuildMethodException: 13 errors

at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190

at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

Advertisement

Agreed, the first few errors are that it cannot find Unity dll's, so probably something in your installation is fouled up.

This topic is closed to new replies.

Advertisement