示例#1
0
        private static void MainInternal(string[] args)
        {
            var info = ModificationInfo.Parse(args);
            var modificationChain = new VerifyRootDirectory();

            modificationChain
            .SetNext(new FindCleanAssembly())
            .SetNext(new LoadAssemblyCSharp())
            .SetNext(new ModifyAccessors())
            .SetNext(new SaveAssemblyCSharp());

            modificationChain.ExecuteSteps(info);
        }
示例#2
0
 internal static void Main(string[] args)
 {
     try
     {
         var info = ModificationInfo.Parse(args);
         PerformInstall(info);
         Console.WriteLine("Install successfull");
     }
     catch (ModificationException ex)
     {
         Console.WriteLine(ex.Message);
         Console.WriteLine("Install failed");
     }
 }