Build() приватный статический Метод

private static Build ( BuildingMod mod, IBuildStatus status ) : bool
mod BuildingMod
status IBuildStatus
Результат bool
Пример #1
0
        internal static void BuildModCommandLine(string modFolder)
        {
            // Once we get to this point, the application is guaranteed to exit
            var lockFile = AcquireConsoleBuildLock();

            try
            {
                var modCompile = new ModCompile(new ConsoleBuildStatus());
                if (!modCompile.Build(modFolder))
                {
                    Environment.Exit(1);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Environment.Exit(1);
            }
            finally
            {
                lockFile.Close();
            }
            // Mod was built with success, exit code 0 indicates success.
            Environment.Exit(0);
        }
Пример #2
0
 internal static void BuildMod()
 {
     Interface.buildMod.SetProgress(0, 1);
     ThreadPool.QueueUserWorkItem(_ =>
     {
         try
         {
             PostBuildMenu(ModCompile.Build(modToBuild, Interface.buildMod));
         }
         catch (Exception e)
         {
             ErrorLogger.LogException(e);
         }
     }, 1);
 }