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); }
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"); } }