From f7a5dc6102aa488e02d1959d1e3030463d7c2f68 Mon Sep 17 00:00:00 2001 From: Patrick Kranz Date: Sat, 20 May 2017 16:33:45 +0200 Subject: [PATCH] accepts now url additionally to files. --- XmlSchemaClassGenerator.Console/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XmlSchemaClassGenerator.Console/Program.cs b/XmlSchemaClassGenerator.Console/Program.cs index 4ef476fc..9c57c33a 100644 --- a/XmlSchemaClassGenerator.Console/Program.cs +++ b/XmlSchemaClassGenerator.Console/Program.cs @@ -85,7 +85,7 @@ A file name may be given by appending a pipe sign (|) followed by a file name (l return; } - files = files.SelectMany(f => Glob.Glob.ExpandNames(f)).ToList(); + files = files.SelectMany(f => Glob.Glob.ExpandNames(f)).Concat(files.Where(f => Uri.IsWellFormedUriString(f, UriKind.Absolute))).ToList(); var namespaceMap = namespaces.Select(n => ParseNamespace(n, namespacePrefix)).ToNamespaceProvider(key => {