Zetbox.Generator.AbstractBaseGenerator.Generate C# (CSharp) Méthode

Generate() public méthode

public Generate ( Zetbox ctx, string basePath, Compiler compiler ) : void
ctx Zetbox
basePath string
compiler Compiler
Résultat void
        public virtual void Generate(Zetbox.API.IZetboxContext ctx, string basePath, Compiler compiler)
        {
            using (Log.InfoTraceMethodCall("Generate", "Generating " + this.BaseName))
            {
                _compiler = compiler;
                InitCodeBasePath(basePath);
                Directory.CreateDirectory(CodeBasePath);
                DeleteOldFiles();

                SaveKeyFile();

                var generatedFileNames = new List<string>();

                generatedFileNames.AddRange(Generate_Objects(ctx));

                Log.Info("  Assemblyinfo");
                generatedFileNames.Add(Generate_AssemblyInfo(ctx));

                Log.Info("  Other Files");
                generatedFileNames.AddRange(Generate_Other(ctx));

                Log.Info("  Project File");
                Generate_ProjectFile(ctx, ProjectGuid, generatedFileNames, _schemaProviders);
            }
        }