/// <summary> /// Convenient way to get to the ConfiguredProject from the hierarchy /// </summary> public static ConfiguredProject GetConfiguredProject(this IVsHierarchy hierarchy) { return(hierarchy.GetBrowseObjectContext()?.UnconfiguredProject?.LoadedConfiguredProjects?.FirstOrDefault()); }
/// <summary> /// Convenient way to get to the UnconfiguredProject from the hierarchy /// </summary> public static UnconfiguredProject GetUnconfiguredProject(this IVsHierarchy hierarchy) { return(hierarchy.GetBrowseObjectContext()?.UnconfiguredProject); }