public static EnvDTE.Project GetDTEProject(this IVsProject project) { IVsHierarchy hierarchy = project as IVsHierarchy; object obj = null; if (hierarchy != null) { hierarchy.GetProperty(VSConstants.VSITEMID_ROOT, (int)__VSHPROPID.VSHPROPID_ExtObject, out obj); } var dteproject = obj as EnvDTE.Project; EnsureIsCheckout(dteproject, project.GetProjectFullPath()); return(dteproject); }
public static MSProject GetMSBuildProject(this IVsProject project) { return(MSProjectExtension.LoadedProject(project.GetProjectFullPath())); }
public static void EnsureIsCheckout(this IVsProject project) { EnsureIsCheckout(project.GetDTEProject(), project.GetProjectFullPath()); }
public static Microsoft.Build.Evaluation.Project GetMSBuildProject(this IVsProject project, bool cached = false) { EnsureIsCheckout(project); return(MSProjectExtension.LoadedProject(project.GetProjectFullPath(), cached)); }
private static void EnsureIsCheckout(IVsProject project) { EnsureIsCheckout(project.GetDTEProject(), project.GetProjectFullPath()); }