public virtual HelixTemplateManifest Parse(IDictionary <string, string> replacementTokens) { Manifest = new HelixTemplateManifest(ManifestFilePath) { ReplacementTokens = replacementTokens }; ManifestTypeInstantiator = new ManifestTypeInstantiator(); return(Parse(File.ReadAllText(ManifestFilePath))); }
public virtual HelixTemplateManifest Parse(IDictionary <string, string> replacementTokens) { try { Manifest = new HelixTemplateManifest(ManifestFilePath) { ReplacementTokens = replacementTokens }; ManifestTypeInstantiator = new ManifestTypeInstantiator(); return(Parse(File.ReadAllText(ManifestFilePath))); } catch (Exception exception) { Trace.WriteLine($"Exception occurred while parsing manifest: {exception.Message}\n\n{exception.StackTrace}"); return(null); } }