Exemplo 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());
 }
Exemplo 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);
 }