Ejemplo n.º 1
0
        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 = ICSharpCode.ILSpy.AddIn.Utils.ArgumentArrayToCommandLine(parameters.AssemblyFileNames.ToArray());

            if (parameters.Arguments != null)
            {
                commandLineArguments = string.Concat(commandLineArguments, " ", ICSharpCode.ILSpy.AddIn.Utils.ArgumentArrayToCommandLine(parameters.Arguments));
            }

            Process.Start(GetILSpyPath(), commandLineArguments);
        }