0 votes

I'm a c# developer and wanted to try the godot mono version, so i downloaded 3.2.2
When i write a c# Script and add it to my project, i can't test the scene. It tells me this:

Project "Godot Basic Move and Dodge Game.sln", Build target(s):
Message: The "Debug|Any CPU" project folder configuration is created.
Project "Godot Basic Move and Dodge Game.csproj" (default targets):
    C:\Program Files\dotnet\sdk\3.1.201\Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3644: The reference assemblies for ".NETFramework,Version=v4.7" were not found. To resolve this issue, install the Developer Pack (SDK/target version set) for this framework version, or reorient your application. You can download .NET Framework Developer Packs from https://aka.ms/msbuild/developerpacks. [D:\Goddot\Godot Basic Move and Dodge Game\Godot Basic Move and Dodge Game.csproj]
    The creation of the project "Godot Basic Move and Dodge Game.csproj" is finished -- ERROR.
The creation of the project "Godot Basic Move and Dodge Game.sln" is finished -- ERROR.

I already installed NetFramework from the website written above, i also installed Mono SDK.

in Engine by (14 points)

1 Answer

+1 vote

With .Net framework you also mean Visual Studio Buildtools?

If so, just open the .csproj file in your game folder and change the target framework to 4.8

<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>

They already know about that problem.
https://github.com/godotengine/godot/issues/40546

by (710 points)

perfect, that did work! Thanks for your fast reply!

It also worked for me. Change it to the version installed in your computer.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.