public static ProjectFilePath[] GetProjectReferencedProjectFilePaths(ProjectFilePath projectFilePath)
        {
            // Get all project file paths that are referenced by the solution file path.
            var arguments = $@"list ""{projectFilePath}"" reference";

            var projectFilePaths = new List <ProjectFilePath>();

            var runOptions = new ProcessRunOptions
            {
                Command           = DotnetCommand.Value,
                Arguments         = arguments,
                ReceiveOutputData = (sender, e) => DotnetCommandServicesProvider.ProcessListProjectProjectReferencesOutput(sender, e, projectFilePath, projectFilePaths),
            };

            ProcessRunner.Run(runOptions);

            return(projectFilePaths.ToArray());
        }
        public static ProcessOutputCollector Run(FilePath svnExecutableFilePath, string arguments, bool throwIfAnyError = true)
        {
            var outputCollector = new ProcessOutputCollector();
            var runOptions      = new ProcessRunOptions
            {
                Command           = svnExecutableFilePath.Value,
                Arguments         = arguments,
                ReceiveOutputData = outputCollector.ReceiveOutputData,
                ReceiveErrorData  = outputCollector.ReceiveErrorData,
            };

            ProcessRunner.Run(runOptions);

            if (throwIfAnyError && outputCollector.AnyError)
            {
                throw new Exception($"SVN automation failure.\nReceived:\n{outputCollector.GetErrorText()}");
            }

            return(outputCollector);
        }