public static CompleteConfiguration WithAllPathsRelativeToDirectory(this CompleteConfiguration configuration, string basePath, Func <string, string> preprocessOriginalPath = null)
 {
     configuration.Input.Assemblies =
         configuration
         .Input
         .Assemblies
         .Select(path => MakePathRelativeToDirectory(path, basePath, preprocessOriginalPath))
         .ToList();
     configuration.Output.Location = MakePathRelativeToDirectory(configuration.Output.Location, basePath, preprocessOriginalPath);
     return(configuration);
 }
 public static CompleteConfiguration WithAllPathsRelativeToFile(this CompleteConfiguration configuration, string basePath, Func <string, string> preprocessOriginalPath = null)
 {
     return(configuration.WithAllPathsRelativeToDirectory(new FileInfo(basePath).DirectoryName, preprocessOriginalPath));
 }