aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-05-02 17:36:54 +0300
committerShlomo Hecht <shlomo@twine-s.com>2018-05-02 17:36:54 +0300
commitee697f7a3350d0a97bddee4de3a2ae4f9d285052 (patch)
tree2dc2e3bb811b0d89a3c4c51801c1572966fcee7c /Software/Visual_Studio/Tango.CodeGeneration/Helper.cs
parent73c4b814f1f28170ae72723568189096413c3564 (diff)
downloadTango-ee697f7a3350d0a97bddee4de3a2ae4f9d285052.tar.gz
Tango-ee697f7a3350d0a97bddee4de3a2ae4f9d285052.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Helper.cs')
-rw-r--r--Software/Visual_Studio/Tango.CodeGeneration/Helper.cs7
1 files changed, 7 insertions, 0 deletions
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
/// </summary>
public static class Helper
{
+ static Helper()
+ {
+ var config = new TemplateServiceConfiguration { Debug = true, ReferenceResolver = new CustomResolver() };
+ Engine.Razor = RazorEngineService.Create(config);
+ }
+
/// <summary>
/// Gets a code template by the code object type.
/// </summary>