C# Error on mono version 3.1

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

Help I get this error when trying to run my program how do I fix it so it will run thanks:

Failed to get modified time for: E:/Project Rift/MacAfee-Game/Mcafee Game/Scripts/C%23/SpriteMove.cs
modules/mono/utils/string_utils.cpp:168 - Condition ’ err != OK ’ is true. returned: err
modules/mono/editor/script_class_parser.cpp:664 - Method/Function Failed, returning: ferr
modules/mono/editor/csharp_project.cpp:183 - Parse error:
Failed to determine namespace and class for script: res://Scripts/C%23/SpriteMove.cs
modules/mono/editor/godotsharp_builds.cpp:383 - Condition ’ metadata_err != OK ’ is true. returned: false
editor/editor_node.cpp:4666 - A Godot Engine build callback failed.

My code is:

using Godot;
using System;

public class Movement : KinematicBody2D
{
[Export] public int Speed = 200;

Vector2 velocity = new Vector2();

public void GetInput()
{
    velocity = new Vector2();

    if (Input.IsActionPressed("right"))
        velocity.x += 1;

    if (Input.IsActionPressed("left"))
        velocity.x -= 1;

    velocity = velocity.Normalized() * Speed;
}

public override void _PhysicsProcess(float delta)
{
    GetInput();
    velocity = MoveAndSlide(velocity);
}

}