- Home /
Game won't build
I am a beginner, not a programmer
I get a list of errors when i try to build game
1
Could not delete file ‘H:/AIE 2018/Work/Unity/Build test/New Unity Project 1/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb.bak’
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
2
Error building Player: Could not delete file ‘H:/AIE 2018/Work/Unity/Build test/New Unity Project 1/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb.bak’
3
Build completed with a result of ‘Failed’ UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
4
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00207] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:172 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
5
Could not delete file ‘H:/AIE 2018/Work/Unity/Build test/New Unity Project 1/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb.bak’ UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
i have no errors when i use play mode in unity but when i try to build i get all these errors and game doesn’t even build
WTF IS GOING ON???
Answer by hexagonius · Mar 16, 2018 at 08:07 AM
remove every folder from your project except ProjectSettings and Assets while Unity is closed and open the project afterwards. the other folders will be regenerated then. try building again. If that doesn't work check your folder permissions on H drive.
Your answer
![](https://koobas.hobune.stream/wayback/20220612154711im_/https://answers.unity.com/themes/thub/images/avi.jpg)