Problem with Godot 3 Mono reference assemblies

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jvincek
:warning: Old Version Published before Godot 3 was released.

I’m a bit stuck with getting alpha 2 with mono to build my project properly. Any project in fact, I’ve tried with a brand new project as well - didn’t even add any C# code.

The error I’m getting is when trying to run the project is the following:
“C:\Program Files\Mono\lib\mono\msbuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(1138,5): The reference assemblies for framework “.NETFramework,Version=v4.5” were not found. To resolve this…”

Unfortunately I don’t see the middle of the message because I was unable to find a way to copy/view the entire message - double click, ctrl+c don’t work :slight_smile: I can see the end of the message by hovering over it…

“…version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.”

I also tried with x86 mono, the same message appears (of course with “Program Files x86”).

I have no prior experience with Mono so I might be missing something simple, but I’ve tried about a dozen solutions but to no avail:

I will add that even though I installed Mono (the one linked in the alpha 2 post) with all the default settings, the editor didn’t open until I added the MONO_PATH env var, even though the post stated it should work out of the box…

Furthermore, I didn’t quite get this statement which might be related: “You will also need msbuild in your PATH, so if you installed it in a location which is not included in the PATH, you can either override the latter or create a symbolic link.”
What msbuild are we talking about? There are a couple of “msbuild” folders and files inside the mono installation, but none of them are “exe” files… Only one “bat” file if that counts. Either way, I’ve added that to the path and a bunch of windows/.net “msbuild” folders/executables to the path as well. Didn’t help.

Any ideas?

:bust_in_silhouette: Reply From: jvincek

Ok, I’ve solved this part :slight_smile:

I needed to install exactly v4.5 of the .NET SDK, as specified in this SO post. Not 4.5.1, not any other version, exactly 4.5… To quote the relevant part of the linked answer:

The link for Windows Software Development Kit (SDK) for Windows 8, which is actually for .NET Framework 4.5, is: Windows SDK and emulator archive | Microsoft Developer

However, a new error has arisen :slight_smile: click me