public void Save() { try { WorkingAssembly.Write(NewLocation); } catch (Exception e) { Logger.Log(e.Message); Logger.Log(e.StackTrace); } }
public void Load() { try { OriginalAssembly = AssemblyDefinition.ReadAssembly(OriginalLocation); WorkingAssembly = OriginalAssembly; } catch { Logger.Log(Constants.AssemblyErrorMessage); HasIssue = true; return; } if (WorkingAssembly.HasStrongName()) { Logger.Log("Removing Strongname Key..."); WorkingAssembly.RemoveStrongName(); } }
public void Load() { try { OriginalAssembly = AssemblyDefinition.ReadAssembly(OriginalLocation); WorkingAssembly = OriginalAssembly; } catch { Logger.Log(Constants.AssemblyErrorMessage); HasIssue = true; return; } if (WorkingAssembly.HasStrongName()) { Logger.Log("Removing Strongname Key..."); WorkingAssembly.RemoveStrongName(); } Logger.Log("Gathering User Input..."); _toChange = Interface.GetUserInputDialog("What string are you replacing?", "Settings", "example.com"); _replacement = Interface.GetUserInputDialog("What are you replacing it with?", "Settings", "example.net"); }
public void Save() { WorkingAssembly.Write(NewLocation); }