修复-发布时代码生成路径的错误

This commit is contained in:
2023-09-07 16:16:59 +08:00
parent ed7e23192c
commit eed5c27a3f

View File

@@ -1,4 +1,5 @@
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using JNPF.Common.Configuration;
using Tnb.Core; using Tnb.Core;
namespace Tnb.Vengine; namespace Tnb.Vengine;
@@ -26,7 +27,7 @@ public class TemplateContext
#if DEBUG #if DEBUG
BasePath = CodeHelper.GetSolutionDirectoryPath(false)!; BasePath = CodeHelper.GetSolutionDirectoryPath(false)!;
#else #else
BasePath = EApp.Options.App.AcmenBasePath; BasePath = FileVariable.GenerateCodePath;
#endif #endif
ModuleCode = moduleCode; ModuleCode = moduleCode;
} }