private static void Main(string[] args) { var info = AppsScriptSourceCodeManager.Initialize(Directory.GetParent(Directory.GetCurrentDirectory()).Parent.Parent.FullName).Result; Console.WriteLine(info.MyResult); if (info.IsSuccess) { try { Console.WriteLine("Please wait... Creating a new Google App Script Project!"); AppsScriptSourceCodeManager.CreateNewGASProject("Library Test Demo").Wait(); } catch (AppsScriptSourceCodeManager.InfoException ex) { Console.WriteLine(ex); } Console.ReadLine(); foreach (var str in AppsScriptSourceCodeManager.GetScriptInfo()) { Console.WriteLine(str); } } Console.Read(); }
public static void CreateGASProject(string Name) { try { var res = AppsScriptSourceCodeManager.CreateNewGASProject(Name).Result; printTaskResult(res.ToString(), res.IsSuccess); } catch (Exception ex) { PrintErrorCentered(ex.Message); } }