Ejemplo n.º 1
0
 /// <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());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Convenient way to get to the UnconfiguredProject from the hierarchy
 /// </summary>
 public static UnconfiguredProject GetUnconfiguredProject(this IVsHierarchy hierarchy)
 {
     return(hierarchy.GetBrowseObjectContext()?.UnconfiguredProject);
 }