Error when try to run a scene from a c# script.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By auloma

Hi everyone,

I try to learn godot with the “Dodge the Creeps!” tutorial.
I started with a simple c# script to check everything works well :

using Godot;
using System;

public class joueur : Area2D
{
 // Called when the node enters the scene tree for the first time.
 public override void _Ready()
 {
	 GD.Print("Player ready.");
 } 

 // // Called every frame. 'delta' is the elapsed time since the previous frame.
 public override void _Process(float delta)
 {
	GD.Print("New frame.");
 }
}

The problem is that when I run it I got this error :

modules/mono/editor/csharp_project.cpp:155 - Method/Function Failed, returning: FAILED
modules/mono/editor/godotsharp_builds.cpp:383 - Condition ’ metadata_err != OK ’ is true. returned: false
editor/editor_node.cpp:4691 - A Godot Engine build callback failed

Does anybody knows how to fix it ?
Thank you for your help !