// Displays the contents of a manifest to the console window. // private static void _print_manifest(String manifest, bool prefix) { AssemblyDependencies ad = null; try { ad = new AssemblyDependencies(manifest, m_lai); } catch (System.ArgumentNullException e) { _error_message(Localization.INVALID_ASSEMBLY_MANIFEST, prefix); Trace.WriteLine("Exception: " + e.ToString()); return; } catch (System.Exception e) { _error_message(e.Message, prefix); Trace.WriteLine("Exception: " + e.ToString()); return; } ArrayList observed = new ArrayList(); _print_info(ad, ad.ManifestName, observed, prefix ? 0 : 1); if (m_config != null && m_config.Length > 0) { AppConfig.SaveConfig(ad, m_config); } ad.Dispose(); }
// Used to clean up resources in a .NET Framework Application. protected override void Dispose(bool disposing) { if (disposing) { m_infop.Dispose(); if (m_ad != null) { m_ad.Dispose(); } } base.Dispose(disposing); }