private void InitForm() { using (new SimpleUtils.SimpleWaitCursor()) { List <GacInterop.AssemblyListEntry> list = GacInterop.GetAssemblyList(); ListViewItem lvi; ListViewItem.ListViewSubItem lvsi; foreach (GacInterop.AssemblyListEntry le in list) { lvi = new ListViewItem(); lvi.Text = le.Name; lvi.Tag = le.FullName; lvi.ToolTipText = le.FullName; lvi.Group = listView1.Groups[ListViewGroupFiltered]; lvsi = new ListViewItem.ListViewSubItem(); lvsi.Text = le.Version; lvi.SubItems.Add(lvsi); lvsi = new ListViewItem.ListViewSubItem(); lvsi.Text = le.PublicKeyToken; lvi.SubItems.Add(lvsi); listView1.Items.Add(lvi); } } }
protected virtual IList <DomAssemblyName> GetCacheContent() { List <DomAssemblyName> list = GacInterop.GetAssemblyList(); list.RemoveAll(name => name.ShortName.ToLowerInvariant().EndsWith(".resources")); return(list); }
protected virtual IList <DomAssemblyName> GetCacheContent() { List <DomAssemblyName> list = GacInterop.GetAssemblyList(); list.RemoveAll(name => name.ShortName.EndsWith(".resources", StringComparison.OrdinalIgnoreCase)); return(list); }
void PrintGACCache() { foreach (DomAssemblyName asm in GacInterop.GetAssemblyList()) { ListViewItem item = new ListViewItem(new string[] { asm.ShortName, asm.Version.ToString() }); item.Tag = asm.FullName; ((ListView)ControlDictionary["gacListView"]).Items.Add(item); } }
static Common() { Thread t = new Thread(new ThreadStart(delegate { foreach (DomAssemblyName s in GacInterop.GetAssemblyList()) { asms.Add(s.ShortName); } })); t.Start(); }
protected virtual List <ListViewItem> GetCacheContent() { List <ListViewItem> itemList = new List <ListViewItem>(); foreach (GacInterop.AssemblyListEntry asm in GacInterop.GetAssemblyList()) { ListViewItem item = new ListViewItem(new string[] { asm.Name, asm.Version }); item.Tag = asm.FullName; itemList.Add(item); } return(itemList); }
protected Assembly GetWebAdminstrationAssembly() { foreach (DomAssemblyName assembly in GacInterop.GetAssemblyList()) { if (assembly.FullName.Contains("Microsoft.Web.Administration")) { if (IsServerManagementVersionRequired(assembly)) { return(Assembly.Load(assembly.FullName)); } } } throw new ApplicationException(ResourceService.GetString("ICSharpCode.WebProjectOptionsPanel.IISNotFound")); }