/// <summary> /// Initializes a new node instance /// </summary> /// <param name="project"> /// The current project node /// </param> /// <param name="element"> /// The project file element being added /// </param> public NuSpecFileNode( NuBuildNode project, ProjectElement element) : base(project, element) { this.project = project; }
/// <summary> /// Creates a new project instance /// </summary> /// <returns> /// The NuBuildNode project node /// </returns> protected override ProjectNode CreateProject () { var project = new NuBuildNode(this.package); var provider = (IServiceProvider)this.package; var olesite = (IOleServiceProvider)provider.GetService( typeof(IOleServiceProvider) ); project.SetSite(olesite); return project; }
/// <summary> /// Creates a new project instance /// </summary> /// <returns> /// The NuBuildNode project node /// </returns> protected override ProjectNode CreateProject() { var project = new NuBuildNode(this.package); var provider = (IServiceProvider)this.package; var olesite = (IOleServiceProvider)provider.GetService( typeof(IOleServiceProvider) ); project.SetSite(olesite); return(project); }
/// <summary> /// Create an instance of NuBuildNode. /// The initialization will be done later when Visual Studio calls /// InitalizeForOuter on it. /// </summary> /// <param name="outerProjectIUnknown"> /// This value points to the outer project. It is useful if there is a /// Project SubType of this Project SubType. /// </param> /// <returns> /// An NuBuildNode instance that has not been initialized. /// </returns> protected override object PreCreateForOuter(IntPtr outerProjectIUnknown) { var project = new NuBuildNode(this.package); return(project); }
/// <summary> /// Initializes a new node instance /// </summary> /// <param name="project"> /// The current project node /// </param> /// <param name="element"> /// The project file element being added /// </param> public NuSpecFileNode ( NuBuildNode project, ProjectElement element) : base(project, element) { this.project = project; }