Browse Source

修复导表脚本一处bug:当导出的客户端配置为空时,会报错。

大爷 1 year ago
parent
commit
7381a8f21b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Share/Tool/ExcelExporter/ExcelExporter.cs

+ 5 - 0
Share/Tool/ExcelExporter/ExcelExporter.cs

@@ -282,6 +282,11 @@ namespace ET
         private static Assembly DynamicBuild(ConfigType configType)
         {
             string classPath = GetClassDir(configType);
+            if (!Directory.Exists(classPath))
+            {
+                Directory.CreateDirectory(classPath);
+            }
+
             List<SyntaxTree> syntaxTrees = new List<SyntaxTree>();
             List<string> protoNames = new List<string>();
             foreach (string classFile in Directory.GetFiles(classPath, "*.cs"))