godot/modules/mono/editor/GodotTools/GodotTools/CsProjOperations.cs

using Godot;
using System;
using GodotTools.ProjectEditor;

namespace GodotTools
{
    public static class CsProjOperations
    {
        public static string GenerateGameProject(string dir, string name)
        {
            try
            {
                return ProjectGenerator.GenAndSaveGameProject(dir, name);
            }
            catch (Exception e)
            {
                GD.PushError(e.ToString());
                return string.Empty;
            }
        }
    }
}