BeforeBuild.Substitution.Run C# (CSharp) Method

Run() public method

public Run ( ) : void
return void
        public void Run()
        {
            //清空目标文件夹
            if(clearDst)
            {
                clearFolder(dstDir);
                Log("清空目标文件夹。");
            }
            Log("-------------------扫描替换文件-----------------------");
            IDictionary<string, string> partials = new Dictionary<string, string>();
            if (!CompilePartials(srcDir + FrmMain.CONFIG_FILE, partials))
            {
                Log("处理结束:解析替换文件出错。");
                return;
            }
            Log("----------------扫描替换文件结束-----------------------");
            //handle the xaml files recursively, copy other type of file as it is
            Log("----------------替换文件开始-----------------------");
            WalkThrough(0, srcDir, dstDir, partials);
            Log("----------------替换文件结束-----------------------");
        }