/// <summary> /// Handler for item added by other editor /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void my_ItemAdded(object sender, NewItemAddedEventArgs e) { File.WriteAllBytes(cb.ProjPath + e.RelPath, e.Content); CoProFilterProvider.MySide = false; EnvDTE.Projects ps = gobj.DTE2.Solution.Projects; foreach (EnvDTE.Project p in ps) { string pname = p.Name; if (p.Name.Contains(e.Project)) { p.ProjectItems.AddFromTemplate(cb.ProjPath + e.RelPath, e.Name); break; } } CoProFilterProvider.MySide = true; }