예제 #1
0
 /// <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();
     }
 }
예제 #2
0
 /// <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();
     }
 }
예제 #3
0
 /// <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");
     }
 }
예제 #4
0
 /// <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();
     }
 }
예제 #5
0
 /// <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();
 }
예제 #6
0
 /// <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();
 }