godot: Godot Mono Doesn't Work on Ubuntu 20.04

Godot version: 3.2.1 Mono x64 OS/device including version: Ubuntu 20.04 x64 Issue description: Godot C# doesn’t build the project. Captura de tela de 2020-04-24 00-38-08 Steps to reproduce: Create a New C# project, add a blank script, try to build. Minimal reproduction project: No needed, only a blank project is enought. Error: Projeto "Novo Projeto De Jogo.sln" (Build destino(s)): Message: Compilando a configuração de solução "Debug|Any CPU". Projeto "Novo Projeto De Jogo.csproj" (destinos padrão): /usr/lib/mono/msbuild/Current/bin/Microsoft.CSharp.CurrentVersion.targets(333,5): error MSB4019: o projeto importado "/usr/lib/mono/msbuild/Current/bin/Roslyn/Microsoft.CSharp.Core.targets" não foi localizado. Confirme se a expressão na declaração Import "/usr/lib/mono/msbuild/Current/bin/Roslyn/Microsoft.CSharp.Core.targets" está correta e se o arquivo existe no disco. [/home/margarete/Documentos/GameDev/Projetos/Novo Projeto de Jogo/Novo Projeto De Jogo.csproj] Projeto de compilação pronto "Novo Projeto De Jogo.csproj" -- FALHA. Projeto de compilação pronto "Novo Projeto De Jogo.sln" -- FALHA.

Mono Issue https://github.com/mono/mono/issues/19648

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 25 (15 by maintainers)

Commits related to this issue

Most upvoted comments

@Calinou @aaronfranke Well that drives me nuts… It worked! You MUST use .NET Core 3.1 SDK not .NET 5!

from my azure yaml

- task: UseDotNet@2
  displayName: 'Use .NET Core sdk 3.1'
  inputs:
    packageType: 'sdk'
    version: '3.x'
    includePreviewVersions: false

@aaronfranke Understandable, I have updated to the 3.2.4.rc3 and that has fixed all my immediate issues. I will try to contribute in a helpful manner as I proceed. Thank you all for the great work!

I reverted back to the stable repository. Looks like additionally installing mono-roslyn fixes it.