Repository: godot
Issue: Image '.mono/assemblies/Debug/mscorlib.dll.dll' not found in exported Godot Mono project 
Labels: bug,platform:windows,topic:thirdparty,needs testing,topic:dotnet,crash

### Tested versions

- reproduced in 3.5.2 mono, 3.5.3 mono official builds.
- not reproduced in 4.2.1 mono official build.

### System information

Windows 10.0.22621 - Vulkan (Forward+) - integrated Intel(R) Iris(R) Xe Graphics (Intel Corporation; 31.0.101.4032) - 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 Threads)

### Issue description

I'm hitting a strange issue on a blank exported Godot Mono project. Here is the debug log output leading up to a crash:

```
Config attempting to parse: 'C:/Users/MyUserName/Downloads/xbl-experiment-builds/2/data_HowDidThisBreak/Mono/etc\mono\config'. (in domain Mono, info)
Image addref mscorlib[0000023d7e982a30] (asmctx DEFAULT) -> .mono/assemblies/Debug/mscorlib.dll[0000023d7ea0e530]: 2 (in domain Mono, info)
Prepared to set up assembly 'mscorlib' (.mono/assemblies/Debug/mscorlib.dll) (in domain Mono, info)
AOT: image '.mono/assemblies/Debug/mscorlib.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
AOT: image 'C:/Users/MyUserName/Downloads/xbl-experiment-builds/2/data_HowDidThisBreak/Mono/lib/mono/aot-cache/amd64/mscorlib.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Assembly mscorlib[0000023d7e982a30] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info)
```

It is very similar to the output of @MEJIOMAH17 in #15729, but unfortunately I don't know what caused it for them.

### Steps to reproduce

Unfortunately, I can't send a repro project or have specific steps, because this seems to be some sort of machine state issue. On this computer, I can even reproduce this on a freshly created brand new project (before that I also tried deleting the .mono/.import folders), all defaults, with a single default `Node2D` as the main scene with the default export templates, with a default generated C# solution, not a single csharp file.

Initially I encountered the issue on the official 3.5.2 mono build, then I upgraded to 3.5.3 mono, and still encountered the same. Tried switching build tools from dotnet CLI to to MSBuild (via VS), in both cases the build produces no warnings/error. Deleted my `%APPDATA%\Godot` folder (everything except editor settings, editor layouts, and the project list). No reproduction on 4.2.1. I assume it has something to do with .NET 6 being used.

Curiously, I can run the project in editor fine, but the issue is with the exported project, both in debug and release modes (the result is the same, except release, obviously, produces an empty log).

Backstory - I tried integrating the [Windows GDK](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/get-started-with-pc-dev/get-started-with-custom-engine/gc-get-started-with-custom-engine-pc-csharp) as an experiment in a blank Godot Mono project, but since that required some modifications in one of their projects, and I wasn't familiar with the .csproj syntax so, for convenience, I installed Visual Studio 2022 with the .NET desktop development workload, so, perhaps, that broke something for me, in my case, but I would be very surprised if that was the case.

It also depends on Windows SDK and Windows GDK, so i also installed those via the Visual Studio installer, again, via the regular flow, nothing custom, but I again doubt that it is at fault in this case, still, figured I'd mention that.

Unfortunately I did not catch the exact point where I could have broken _something_, and I don't know how to even try and reproduce this on another machine short of reinstalling a fresh OS and redoing all the steps I did today.

In the end, this might be a godot bug, but also, this maybe this is something I might have done on my end, but again, all defaults, no custom configurations.

Any help is highly appreciated.

### Minimal reproduction project (MRP)

This doesn't seem to be reproducible via a specific project.