-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mono version complains about missing .NET 4.7 targeting packs #45257
Comments
Changed the title to reflect the actual bug. .NET 5 is not supported as a target yet. You can, however, use the build tools from .NET Core or .NET 5 (as of 3.2.4, see also #43717) to build Mono. Targeting |
Well, we have a problem then, because installing mono only (without .NET 5.0) will not meet godot requirements, because it will complain about the 4.7 and how to install 4.7 on linux? |
@nonunknown I can't reproduce the issue. An empty project builds and runs just fine without any errors or warnings anywhere. I'm on Ubuntu 20.04 with Mono 6.12.0.107 and .NET Core 3.1.405. It works with either build tool selected: <Project Sdk="Godot.NET.Sdk/3.2.4">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<RootNamespace>Empty</RootNamespace>
</PropertyGroup>
</Project> Please provide more information (Mono and .NET versions), please test if the above project and if the official demo projects work on your system, and please make sure you have everything in this article set up. |
I think this topic can be closed, for future users:
PS: without changing .csproj to |
That means I don't need to have Mono installed on my pc. I am using Linux mint. I am facing an issue with VSCode's C# extension when I use Mono build, as the recent C# extension need a higher msbuild version than what Mono's msbuild offers. Therefore, I switched to |
@Moon422 No, you will not run into issues. The recommended option right now is to have .NET Core 3.1 SDK installed and optionally Mono, and use dotnet CLI as the build tool. |
Godot version:
Godot 3.2.4 beta 6 Mono
OS/device including version:
Ubuntu 20.10
Issue description:
When the user installs mono (all features), he also needs to install .Net 5.0 (or else he gets errors when compiling)
Workaround
change targetframework to
net5.0
Steps to reproduce:
.cs
At this moment your project will run without any errors, but if you look at
MSBuild
tab notice he will complain about missing 4.7Workaround:
targetFramework
tonet5.0
Minimal reproduction project:
A Empty project already satisfies
The text was updated successfully, but these errors were encountered: