From c46691102dea3e48f13a3b74a9e85b38a5f62d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melvyn=20La=C3=AFly?= Date: Sun, 10 Jun 2018 09:27:05 +0200 Subject: [PATCH] Remove dependency on System.ValueTuple --- MovieBarCodeGenerator/CLI/CLIUtils.cs | 11 ++++++++--- MovieBarCodeGenerator/MovieBarCodeGenerator.csproj | 3 --- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/MovieBarCodeGenerator/CLI/CLIUtils.cs b/MovieBarCodeGenerator/CLI/CLIUtils.cs index ac3b616..719fdcf 100644 --- a/MovieBarCodeGenerator/CLI/CLIUtils.cs +++ b/MovieBarCodeGenerator/CLI/CLIUtils.cs @@ -10,6 +10,11 @@ namespace MovieBarCodeGenerator.CLI { public static class CLIUtils { + private class WildCardInput + { + public string PathPartWithoutWildcards { get; set; } + public string FilePattern { get; set; } + } /// /// the accepted input can be: /// - a simple file path @@ -26,8 +31,8 @@ public static IEnumerable GetExpandedAndValidatedFilePaths(IEnumerable(); } - List<(string PathPartWithoutWildcards, string FilePattern)> allInputFiles - = new List<(string PathPartWithoutWildcards, string FilePattern)>(); + List allInputFiles + = new List(); // At this point, the input files list might contain wildcards needing to be expanded. // To do that, we either keep just the file path, // or, if the path contains a wildcard, we split the directory path and the file pattern: @@ -44,7 +49,7 @@ public static IEnumerable GetExpandedAndValidatedFilePaths(IEnumerable LazyEnumeration() diff --git a/MovieBarCodeGenerator/MovieBarCodeGenerator.csproj b/MovieBarCodeGenerator/MovieBarCodeGenerator.csproj index e588bf3..01cf0b3 100644 --- a/MovieBarCodeGenerator/MovieBarCodeGenerator.csproj +++ b/MovieBarCodeGenerator/MovieBarCodeGenerator.csproj @@ -39,9 +39,6 @@ - - ..\packages\System.ValueTuple.4.4.0\lib\netstandard1.0\System.ValueTuple.dll -