public string BuildArguments()
        {
            StringBuilder arguments = new StringBuilder();

            arguments.Append(GetExecutable());

            if (_parameters.IsDryRun)
            {
                arguments.Append(" -j Dry");
            }

            if (IsMultiTargetProject())
            {
                arguments.Append(" --framework ");
                arguments.Append(GetProjectTargetFramework());
            }

            arguments.Append(" " + _parameters.BuildFilter());

            AddRuntimeArguments(arguments);
            AddDiagnoserArguments(arguments);
            AddExporterArguments(arguments);

            if (!string.IsNullOrWhiteSpace(_optionsProvider.CommandlineParameters))
            {
                arguments.Append(" ");
                arguments.Append(_optionsProvider.CommandlineParameters);
            }

            return(arguments.ToString());
        }
        private string BuildArguments()
        {
            string arguments = "/k " + GetExecutable();

            if (_parameters.IsDryRun)
            {
                arguments += " -j Dry";
            }

            arguments += " " + _parameters.BuildFilter();

            if (_optionsProvider.IsMemoryDiagnoserEnabled)
            {
                arguments += " -m";
            }

            if (_optionsProvider.IsDisassemblyDiagnoserEnabled)
            {
                arguments += " -d";
            }

            if (_optionsProvider.IsEtwProfilerEnabled)
            {
                arguments += " -p ETW";
            }

            if (!string.IsNullOrWhiteSpace(_optionsProvider.CommandlineParameters))
            {
                arguments += " " + _optionsProvider.CommandlineParameters;
            }

            if (!arguments.Contains(" -e "))
            {
                arguments += " -e markdown"; // always included for summary tab
            }
            else
            {
                if (!arguments.Contains("markdown"))
                {
                    arguments = arguments.Replace(" -e ", " -e markdown ");
                }
            }
            return(arguments);
        }