From ee697f7a3350d0a97bddee4de3a2ae4f9d285052 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Wed, 2 May 2018 17:36:54 +0300 Subject: merge --- Software/Visual_Studio/Tango.CodeGeneration/Helper.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Helper.cs') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs b/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs index dfbc893ee..af617fe3e 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs +++ b/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs @@ -1,4 +1,5 @@ using RazorEngine; +using RazorEngine.Configuration; using RazorEngine.Templating; using System; using System.Collections.Generic; @@ -15,6 +16,12 @@ namespace Tango.CodeGeneration /// public static class Helper { + static Helper() + { + var config = new TemplateServiceConfiguration { Debug = true, ReferenceResolver = new CustomResolver() }; + Engine.Razor = RazorEngineService.Create(config); + } + /// /// Gets a code template by the code object type. /// -- cgit v1.3.1