From 8701f4b6a138de27a0c101f3ca0292c45d14710d Mon Sep 17 00:00:00 2001 From: Dennis Daume Date: Mon, 13 Oct 2014 13:42:54 +0200 Subject: [PATCH] Include System.Collections.Generic and System.Linq in the using directives Refit itself needs these using directives --- InterfaceStubGenerator/GeneratedInterfaceStubTemplate.mustache | 2 ++ InterfaceStubGenerator/InterfaceStubGenerator.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/InterfaceStubGenerator/GeneratedInterfaceStubTemplate.mustache b/InterfaceStubGenerator/GeneratedInterfaceStubTemplate.mustache index 5cdb9fa5b..d537c69aa 100644 --- a/InterfaceStubGenerator/GeneratedInterfaceStubTemplate.mustache +++ b/InterfaceStubGenerator/GeneratedInterfaceStubTemplate.mustache @@ -1,5 +1,7 @@ using System; using System.Net.Http; +using System.Collections.Generic; +using System.Linq; {{#UsingList}} using {{Item}}; {{/UsingList}} diff --git a/InterfaceStubGenerator/InterfaceStubGenerator.cs b/InterfaceStubGenerator/InterfaceStubGenerator.cs index 869916b25..883a2c344 100644 --- a/InterfaceStubGenerator/InterfaceStubGenerator.cs +++ b/InterfaceStubGenerator/InterfaceStubGenerator.cs @@ -70,7 +70,7 @@ public TemplateInformation GenerateTemplateInfoForInterfaceList(List x.Name.ToString()); }) .Distinct() - .Where(x => x != "System" && x != "System.Net.Http") + .Where(x => x != "System" && x != "System.Net.Http" && x != "System.Collections.Generic" && x != "System.Linq") .Select(x => new UsingDeclaration() { Item = x }); var ret = new TemplateInformation() {