【发布时间】:2021-01-06 08:46:36
【问题描述】:
我使用 Mono 使用 Godot 游戏引擎 v3.2.2 开始了一个玩具项目。 我只是尝试编译一个非常简单的 C# 脚本,构建失败并在日志中抛出以下错误:
Project "Bloopers.sln" (Build target(s)):
Message: Building solution configuration "Debug|Any CPU".
Project "Bloopers.csproj" (default targets):
/usr/share/dotnet/sdk/3.1.402/Microsoft.Common.CurrentVersion.targets(1177,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.7 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/home/mrblack/src/games/godot/godot_v3/lab/first_game_dotnet/Bloopers.csproj]
MakeDir: Creating directory ".mono/temp/obj/Debug/".
Done building project "Bloopers.csproj" -- FAILED.
完成构建项目“Bloopers.sln”——失败。
我安装了 Mono v.6.12。任何对此问题的见解将不胜感激! 谢谢!!!
【问题讨论】: