Repository: godot
Issue: C#/Mono Project don't run
Labels: bug,platform:linuxbsd,topic:dotnet

**Godot version:**
3.1.1 Mono version


**OS/device including version:**
Fedora Linux 30 x64
Mono 6.0.0 x64
Msbuild 16.0.0.0 for Mono


**Issue description:**
I run the project using a C# script and not build.
```
[leonardo@fedora-notebook Godot_v3.1.1-stable_mono_x11_64]$ DRI_PRIME=1 ./Godot_v3.1.1-stable_mono_x11.64
OpenGL ES 3.0 Renderer: Radeon 500 Series (POLARIS12, DRM 3.30.0, 5.1.20-300.fc30.x86_64, LLVM 8.0.0)
Mono: Logfile is: /home/leonardo/.local/share/godot/mono/mono_logs/2019_08_02 11.40.00 (25333).txt
Editing project: /home/leonardo/testec (::home::leonardo::testec)
OpenGL ES 3.0 Renderer: Radeon 500 Series (POLARIS12, DRM 3.30.0, 5.1.20-300.fc30.x86_64, LLVM 8.0.0)
Mono: Logfile is: /home/leonardo/.local/share/godot/mono/mono_logs/2019_08_02 11.40.03 (25355).txt
[leonardo@fedora-notebook Godot_v3.1.1-stable_mono_x11_64]$ Running: "/usr/bin/msbuild" "/home/leonardo/testec/testec.sln" /v:normal /t:Build "/p:Configuration=Tools" "/l:GodotSharpTools.Build.GodotBuildLogger,/home/leonardo/Programas/Godot_v3.1.1-stable_mono_x11_64/GodotSharp/Tools/GodotSharpTools.dll;/home/leonardo/.local/share/godot/mono/build_logs/2b9fc6edcc09ede0285a36ed243eea5f_Tools"
;1RMSBUILD : error MSB1025: Falha interna durante a execução do MSBuild.
System.IO.IOException: Invalid handle to path "/home/leonardo/testec/[Unknown]"
  at System.IO.FileStream.ReadData (System.Runtime.InteropServices.SafeHandle safeHandle, System.Byte[] buf, System.Int32 offset, System.Int32 count) [0x0002d] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, System.Int32 offset, System.Int32 count) [0x00026] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x000a1] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.StreamReader.ReadBuffer () [0x000b3] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.StreamReader.Read () [0x00028] in <5994468181014a05b48ecbf866f95378>:0 
  at System.TermInfoDriver.GetCursorPosition () [0x00048] in <5994468181014a05b48ecbf866f95378>:0 
  at System.TermInfoDriver.Init () [0x002dc] in <5994468181014a05b48ecbf866f95378>:0 
  at System.ConsoleDriver.Init () [0x00000] in <5994468181014a05b48ecbf866f95378>:0 
  at System.Console.add_CancelKeyPress (System.ConsoleCancelEventHandler value) [0x00007] in <5994468181014a05b48ecbf866f95378>:0 
  at Microsoft.Build.CommandLine.MSBuildApp.Execute (System.String commandLine) [0x00075] in <bfc1a6800805411fb2f459e7ffe3c4e3>:0 

Unhandled Exception:
System.IO.IOException: Invalid handle to path "/home/leonardo/testec/[Unknown]"
  at System.IO.FileStream.ReadData (System.Runtime.InteropServices.SafeHandle safeHandle, System.Byte[] buf, System.Int32 offset, System.Int32 count) [0x0002d] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, System.Int32 offset, System.Int32 count) [0x00026] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x000a1] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.StreamReader.ReadBuffer () [0x000b3] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.StreamReader.Read () [0x00028] in <5994468181014a05b48ecbf866f95378>:0 
  at System.TermInfoDriver.GetCursorPosition () [0x00048] in <5994468181014a05b48ecbf866f95378>:0 
  at System.TermInfoDriver.Init () [0x002dc] in <5994468181014a05b48ecbf866f95378>:0 
  at System.ConsoleDriver.Init () [0x00000] in <5994468181014a05b48ecbf866f95378>:0 
  at System.Console.add_CancelKeyPress (System.ConsoleCancelEventHandler value) [0x00007] in <5994468181014a05b48ecbf866f95378>:0 
  at Microsoft.Build.CommandLine.MSBuildApp.Execute (System.String commandLine) [0x00418] in <bfc1a6800805411fb2f459e7ffe3c4e3>:0 
  at Microsoft.Build.CommandLine.MSBuildApp.Main () [0x00028] in <bfc1a6800805411fb2f459e7ffe3c4e3>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.IOException: Invalid handle to path "/home/leonardo/testec/[Unknown]"
  at System.IO.FileStream.ReadData (System.Runtime.InteropServices.SafeHandle safeHandle, System.Byte[] buf, System.Int32 offset, System.Int32 count) [0x0002d] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, System.Int32 offset, System.Int32 count) [0x00026] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.FileStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x000a1] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.StreamReader.ReadBuffer () [0x000b3] in <5994468181014a05b48ecbf866f95378>:0 
  at System.IO.StreamReader.Read () [0x00028] in <5994468181014a05b48ecbf866f95378>:0 
  at System.TermInfoDriver.GetCursorPosition () [0x00048] in <5994468181014a05b48ecbf866f95378>:0 
  at System.TermInfoDriver.Init () [0x002dc] in <5994468181014a05b48ecbf866f95378>:0 
  at System.ConsoleDriver.Init () [0x00000] in <5994468181014a05b48ecbf866f95378>:0 
  at System.Console.add_CancelKeyPress (System.ConsoleCancelEventHandler value) [0x00007] in <5994468181014a05b48ecbf866f95378>:0 
  at Microsoft.Build.CommandLine.MSBuildApp.Execute (System.String commandLine) [0x00418] in <bfc1a6800805411fb2f459e7ffe3c4e3>:0 
  at Microsoft.Build.CommandLine.MSBuildApp.Main () [0x00028] in <bfc1a6800805411fb2f459e7ffe3c4e3>:0 
ERROR: call_build: A Godot Engine build callback failed.
   At: editor/editor_node.cpp:4666.
WARNING: cleanup: ObjectDB Instances still exist!
   At: core/object.cpp:2095.
ERROR: cleanup: There are still MemoryPool allocs in use at exit!
   At: core/pool_vector.cpp:70.
```

**Steps to reproduce:**
You have to execute Godot by command line, and then run the C# project with the play button.



**Minimal reproduction project:**
[testec.zip](https://github.com/godotengine/godot/files/3461690/testec.zip)