From 861710079a26294c64d70eeadb7630bf83e3bfc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Fri, 8 Apr 2022 12:44:28 +0800 Subject: [PATCH] update FileHelper.cs --- ZR.CodeGenerator/FileHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZR.CodeGenerator/FileHelper.cs b/ZR.CodeGenerator/FileHelper.cs index fd675d0..47a992d 100644 --- a/ZR.CodeGenerator/FileHelper.cs +++ b/ZR.CodeGenerator/FileHelper.cs @@ -77,10 +77,10 @@ namespace ZR.CodeGenerator /// /// 模板名称,应包括文件扩展名称。比如:template.txt /// - public static string ReadTemplate(string templateName) + public static string ReadTemplate(string tplName) { string path = Environment.CurrentDirectory; - string fullName = $"{path}/wwwroot/CodeGenTemplate/{templateName}"; + string fullName = Path.Combine(path, "wwwroot", "CodeGenTemplate", tplName); Console.WriteLine("开始读取模板=" + fullName); string temp = fullName;