/// <summary> /// Initializes an instance of the <see cref="ProjectItemReference"/> class. /// </summary> /// <seealso cref="RecipeReference"/> public ProjectItemReference(string recipe, ProjectItem item) : base(recipe, item) { if (item.ContainingProject.Kind == VsWebSite.PrjKind.prjKindVenusProject) { strategy = new WebItemStrategy(); } else { strategy = new ItemStrategy(); } }
/// <summary> /// Initializes an instance of the <see cref="ProjectItemReference"/> class. /// </summary> /// <seealso cref="IAssetReference"/> protected ProjectItemReference(SerializationInfo info, StreamingContext context) : base(info, context) { if (info.GetBoolean("IsWebItem")) { strategy = new WebItemStrategy(); } else { strategy = new ItemStrategy(); } }
/// <summary> /// Initializes an instance of the <see cref="ProjectReference"/> class. /// </summary> /// <seealso cref="IAssetReference"/> protected ProjectReference(SerializationInfo info, StreamingContext context) : base(info, context) { if (info.GetBoolean("IsWebProject")) { strategy = new WebProjectStrategy(); } else { strategy = new ProjectStrategy(); isSolutionFolder = info.GetBoolean("solutionFolder"); } }
/// <summary> /// Initializes an instance of the <see cref="ProjectReference"/> class. /// </summary> /// <seealso cref="RecipeReference"/> public ProjectReference(string recipe, Project project) : base(recipe, project) { if (project.Kind == PrjKind.prjKindVenusProject) { WebProjectStrategy webStrategy = new WebProjectStrategy(); webStrategy.IssueWebSiteLocationWarning(project); strategy = webStrategy; } else { strategy = new ProjectStrategy(); } }
/// <summary> /// Initializes an instance of the <see cref="SolutionFolderReference"/> class. /// </summary> /// <seealso cref="RecipeReference"/> public SolutionFolderReference(string recipe, EnvDTE80.SolutionFolder folder) : base(recipe, folder) { this.strategy = new SolutionFolderReferenceStrategy(); }
/// <summary> /// Initializes an instance of the <see cref="ProjectReference"/> class. /// </summary> /// <seealso cref="IAssetReference"/> protected SolutionFolderReference(SerializationInfo info, StreamingContext context) : base(info, context) { this.strategy = new SolutionFolderReferenceStrategy(); }