public static void Delete(this IFolder folder) { Guard.NotNull(() => folder, folder); folder.As <EnvDTE.ProjectItem>().Delete(); }