/// <summary> /// Adapts a <see cref="Project"/> to an <see cref="IVsProject"/>. /// </summary> /// <returns>The <see cref="IVsProject"/> or <see langword="null"/> if conversion is not possible.</returns> public static IVsProject AsVsProject(this IAdaptable<Project> adaptable) { return adaptable.AsProjectNode().As<IVsProject>(); }
/// <summary> /// Adapts a <see cref="Project"/> to a <see cref="Microsoft.Build.Evaluation.Project"/>. /// </summary> /// <returns>The <see cref="Microsoft.Build.Evaluation.Project"/> or <see langword="null"/> if conversion is not possible.</returns> public static Microsoft.Build.Evaluation.Project AsMsBuildProject(this IAdaptable<Project> adaptable) { return adaptable.AsProjectNode().As<Microsoft.Build.Evaluation.Project>(); }
/// <summary> /// Adapts a <see cref="Project"/> to a <see cref="VSProject"/>. /// </summary> /// <returns>The <see cref="VSProject"/> or <see langword="null"/> if conversion is not possible.</returns> public static VSProject AsVsLangProject(this IAdaptable<Project> adaptable) { return adaptable.AsProjectNode().As<VSProject>(); }
/// <summary> /// Adapts a <see cref="Project"/> to a DTE <see cref="EnvDTE.Project"/>. /// </summary> /// <returns>The <see cref="Project"/> or <see langword="null"/> if conversion is not possible.</returns> public static EnvDTE.Project AsDteProject(this IAdaptable<Project> adaptable) { return adaptable.AsProjectNode().As<EnvDTE.Project>(); }