update FileHelper.cs

This commit is contained in:
不做码农 2022-04-08 12:44:28 +08:00
parent a0cf47c099
commit 861710079a

View File

@ -77,10 +77,10 @@ namespace ZR.CodeGenerator
/// </summary> /// </summary>
/// <param name="templateName">模板名称应包括文件扩展名称。比如template.txt</param> /// <param name="templateName">模板名称应包括文件扩展名称。比如template.txt</param>
/// <returns></returns> /// <returns></returns>
public static string ReadTemplate(string templateName) public static string ReadTemplate(string tplName)
{ {
string path = Environment.CurrentDirectory; string path = Environment.CurrentDirectory;
string fullName = $"{path}/wwwroot/CodeGenTemplate/{templateName}"; string fullName = Path.Combine(path, "wwwroot", "CodeGenTemplate", tplName);
Console.WriteLine("开始读取模板=" + fullName); Console.WriteLine("开始读取模板=" + fullName);
string temp = fullName; string temp = fullName;