aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs
diff options
context:
space:
mode:
authorRoy <roy.mail.net@gmail.com>2017-12-06 10:11:45 +0200
committerRoy <roy.mail.net@gmail.com>2017-12-06 10:11:45 +0200
commit3e665934f3f01b2cdd3de3fbc2c03ae27ac5740e (patch)
treedef622f54dff1dfc0820ed8fdd96edad98c05ec3 /Software/Visual_Studio/Tango.CodeGeneration/Helper.cs
parent3689238cb9ca77cbd7fa34dbd15003af87266e36 (diff)
downloadTango-3e665934f3f01b2cdd3de3fbc2c03ae27ac5740e.tar.gz
Tango-3e665934f3f01b2cdd3de3fbc2c03ae27ac5740e.zip
Moved ExtendedObject & RelayCommand to Core.
CodeGeneration EntityCodeFile working + cycle reference!
Diffstat (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Helper.cs')
-rw-r--r--Software/Visual_Studio/Tango.CodeGeneration/Helper.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs b/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs
index 0ca012be9..2e0e449f1 100644
--- a/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs
+++ b/Software/Visual_Studio/Tango.CodeGeneration/Helper.cs
@@ -30,12 +30,14 @@ namespace Tango.CodeGeneration
public static String GetTemplate(String name)
{
var assembly = Assembly.GetAssembly(typeof(Helper));
- var resourceName = "CodeGenerator.Templates." + name + ".cshtml";
+ var resourceName = typeof(Helper).Namespace + ".Templates." + name + ".cshtml";
using (Stream stream = assembly.GetManifestResourceStream(resourceName))
- using (StreamReader reader = new StreamReader(stream))
{
- return reader.ReadToEnd();
+ using (StreamReader reader = new StreamReader(stream))
+ {
+ return reader.ReadToEnd();
+ }
}
}