public BuildScript Build(string filename, bool releaseMode = false, bool optimizer = true) { var contains = scriptsAll.ContainsKey(filename); if (!contains || (contains && scriptsAll[filename].UseOptimizer != optimizer)) { if (Path.GetExtension(filename).ToLowerInvariant() == ".nef") { var fileNameManifest = filename; using (BinaryReader reader = new BinaryReader(File.OpenRead(filename))) { NefFile neffile = new NefFile(); neffile.Deserialize(reader); fileNameManifest = fileNameManifest.Replace(".nef", ".manifest.json"); string manifestFile = File.ReadAllText(fileNameManifest); BuildScript buildScriptNef = new BuildNEF(neffile, manifestFile); scriptsAll[filename] = buildScriptNef; } } else { scriptsAll[filename] = NeonTestTool.BuildScript(filename, releaseMode, optimizer); } } return(scriptsAll[filename]); }
public BuildScript Build(string filename, bool releaseMode = false, bool optimizer = true) { if (scriptsAll.ContainsKey(filename) == false) { scriptsAll[filename] = NeonTestTool.BuildScript(filename, releaseMode, optimizer); } return(scriptsAll[filename]); }
public BuildScript Build(string[] filenames, bool releaseMode = false, bool optimizer = true) { var key = string.Join("\n", filenames); if (scriptsAll.ContainsKey(key) == false) { return(NeonTestTool.BuildScript(filenames, releaseMode, optimizer)); } return(scriptsAll[key]); }
public BuildScript Build(string filename, bool releaseMode = false, bool optimizer = true) { var contains = scriptsAll.ContainsKey(filename); if (!contains || (contains && scriptsAll[filename].UseOptimizer != optimizer)) { scriptsAll[filename] = NeonTestTool.BuildScript(filename, releaseMode, optimizer); } return(scriptsAll[filename]); }