Ejemplo n.º 1
0
    private static void GenerateLogPdb()
    {
        //搜索指定目录,得到所有匹配文件路径
        string[] subPaths = SearchFiles.SearchAllFilesWithSpecifiedSuffixs(baseDir, searchPath, ".cs,.lua");
        //新建LogPdb映射
        LogTrackPdbFile pdb = new LogTrackPdbFile();

        //处理所有子文件
        foreach (var subPath in subPaths)
        {
            //剔除所有屏蔽文件
            bool ignoreSign = false;
            foreach (var ignorePath in ignorePaths)
            {
                if (subPath == ignorePath)
                {
                    ignoreSign = true;
                    break;
                }
            }
            if (ignoreSign == false)
            {
                //编码手动插入的代码
                HashLogTrackCode(baseDir, subPath, pdb);
            }
        }
        //生成新LogPdb
        pdb.CreateLogPdb(newLogPdbFolderPath + "/newLogPdb.json");
    }