protected void OpenAssembliesInILSpy(ILSpyParameters parameters) { if (parameters == null) { return; } foreach (string assemblyFileName in parameters.AssemblyFileNames) { if (!File.Exists(assemblyFileName)) { owner.ShowMessage("Could not find assembly '{0}', please ensure the project and all references were built correctly!", assemblyFileName); return; } } string commandLineArguments = Utils.ArgumentArrayToCommandLine(parameters.AssemblyFileNames.ToArray()); if (parameters.Arguments != null) { commandLineArguments = string.Concat(commandLineArguments, " ", Utils.ArgumentArrayToCommandLine(parameters.Arguments)); } System.Diagnostics.Process.Start(GetILSpyPath(), commandLineArguments); }
protected void OpenAssembliesInILSpy(ILSpyParameters parameters) { if (parameters == null) { return; } foreach (string assemblyFileName in parameters.AssemblyFileNames) { if (!File.Exists(assemblyFileName)) { owner.ShowMessage("Could not find assembly '{0}', please ensure the project and all references were built correctly!", assemblyFileName); return; } } var ilspyExe = new ILSpyInstance(parameters); ilspyExe.Start(); }