public static void Run() { Cache.Write(""); Dictionary <string, string> kvp = new Dictionary <string, string>(); kvp.Add("Q4", "Q1"); kvp.Add("2020_", "2021_"); AppSettingsCompiler compiler = new AppSettingsCompiler(); compiler.CompileMode = CompileMode.Commit; compiler.Source = AppSettings.SourceDir + "\\_compile"; compiler.FilenameCompilers.Add(new KeyValInterpreter(kvp)); //compiler.ContentCompilers.Add(new MetricCommenter()); compiler.ContentCompilers.Add(new SqlKeyValInterpreter(compiler.Source + "\\keyval.sql")); compiler.ContentCompilers.Add(new KeyValInterpreter(kvp)); compiler.FileFilter = "*aspx*"; compiler.Dest = @"D:\dev\CyberScope\CyberScopeBranch\CSwebdev\code\CyberScope\RMA\2021"; //compiler.Dest = compiler.Source + "\\_compiled"; compiler.Compile(); Cache.CacheEdit(); }
private static void Scaf() { Cache.Write(""); AppSettingsCompiler compiler = new AppSettingsCompiler(); compiler.Source = AppSettings.SourceDir; compiler.FileFilter = "*.cshtml"; compiler.ContentCompilers.Add(new ModelTemplateInterpreter()); compiler.ContentCompilers.Add(new ModuloInterpreter()); compiler.CompileMode = CompileMode.Cache; compiler.Compile(); Cache.CacheEdit(); }
public static void Run() { //EinsteinBGP_CRUD Cache.Write(""); Dictionary <string, string> kvp = new Dictionary <string, string>(); kvp.Add("EinsteinBGP", "EinsteinUnmonitoredTraffic"); AppSettingsCompiler compiler = new AppSettingsCompiler(); compiler.CompileMode = CompileMode.Cache; compiler.Source = @"D:\dev\CyberScope\CyberScopeBranch\CSwebdev\database\Sprocs\"; compiler.FileFilter = "*EinsteinBGP*.sql"; compiler.FilenameCompilers.Add(new KeyValInterpreter(kvp)); //compiler.ContentCompilers.Add(new MetricCommenter()); compiler.ContentCompilers.Add(new SqlKeyValInterpreter(@"C:\_som\_src\_compile\keyval.sql")); compiler.ContentCompilers.Add(new KeyValInterpreter(kvp)); //compiler.FileFilter = "*aspx*"; //compiler.Dest = @"D:\dev\CyberScope\CyberScopeBranch\CSwebdev\code\CyberScope\RMA\2021"; //compiler.Dest = compiler.Source + "\\_compiled"; compiler.Compile(); Cache.CacheEdit(); }