Godot Crashes When Building

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By OriginalAGP

it crashes when building as well as just testing. The following is my PowerShell. I installed 64-bit Mono but it didn’t help.

PS C:\Users-\Downloads\Godot_v3.1.1-stable_mono_win64> .\Godot_v3.1.1-stable_mono_win64.exe
OpenGL ES 3.0 Renderer: GeForce 940M/PCIe/SSE2
Mono: Logfile is: C:\Users-\AppData\Roaming/Godot/mono/mono_logs/2019_05_29 03.33.56 (25048).txt
Editing project: C:/Users/-/Documents/QG_Godot (C:::Users::-::Documents::QG_Godot)
OpenGL ES 3.0 Renderer: GeForce 940M/PCIe/SSE2
PS C:\Users-\Downloads\Godot_v3.1.1-stable_mono_win64> Mono: Logfile is: C:\Users-\AppData\Roaming/Godot/mono/mono_logs/2019_05_29 03.34.01 (25180).txt
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://body.material
At: core/io/resource_loader.cpp:285
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://Head.material
At: core/io/resource_loader.cpp:285
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://8-_Default.material
At: core/io/resource_loader.cpp:285
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://body.material
At: core/io/resource_loader.cpp:285
WARNING: parse_variant: Couldn’t load resource: res://body.material
At: core/io/resource_format_binary.cpp:360
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://Head.material
At: core/io/resource_loader.cpp:285
WARNING: parse_variant: Couldn’t load resource: res://Head.material
At: core/io/resource_format_binary.cpp:360
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://8-_Default.material
At: core/io/resource_loader.cpp:285
WARNING: parse_variant: Couldn’t load resource: res://8-_Default.material
At: core/io/resource_format_binary.cpp:360
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://8-_Default.material
At: core/io/resource_loader.cpp:285
WARNING: parse_variant: Couldn’t load resource: res://8-_Default.material
At: core/io/resource_format_binary.cpp:360
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://body.material
At: core/io/resource_loader.cpp:285
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://Head.material
At: core/io/resource_loader.cpp:285
ERROR: load_interactive: Condition ’ err != OK ’ is true. returned: Ref()
At: core/io/resource_format_binary.cpp:996
ERROR: Failed loading resource: res://8-_Default.material
At: core/io/resource_loader.cpp:285
ERROR: godot_icall_BuildInstance_get_MSBuildPath: Cannot find executable for ‘MSBuild (VS Build Tools)’. Tried with path:
At: modules/mono/editor/godotsharp_builds.cpp:105

Unhandled Exception:
System.IO.FileNotFoundException: Cannot find the MSBuild executable.
at GodotSharpTools.Build.BuildInstance.GetMSBuildPath () [0x00013] in <32a76a9df224459d83b0375c3bbf8619>:0
at GodotSharpTools.Build.BuildInstance.Build (System.String loggerAssemblyPath, System.String loggerOutputDir, System.String customProperties) [0x0001a] in <32a76a9df224459d83b0375c3bbf8619>:0