Inheritance: Microsoft.VisualStudio.Project.FileNode
コード例 #1
0
        /// <summary>
        /// Create a file node based on an msbuild item.
        /// </summary>
        /// <param name="item">msbuild item</param>
        /// <returns>FileNode added</returns>
        public override FileNode CreateFileNode(ProjectElement item)
        {
            var node = new PowerShellProjectFileNode(this, item);

            node.OleServiceProvider.AddService(typeof(EnvDTE.Project),
                                               new OleServiceProvider.ServiceCreatorCallback(CreateServices),
                                               false);
            node.OleServiceProvider.AddService(typeof(ProjectItem), node.ServiceCreator, false);
            node.OleServiceProvider.AddService(typeof(VSProject),
                                               new OleServiceProvider.ServiceCreatorCallback(CreateServices),
                                               false);

            return(node);
        }
コード例 #2
0
        /// <summary>
        /// Create a file node based on an msbuild item.
        /// </summary>
        /// <param name="item">msbuild item</param>
        /// <returns>FileNode added</returns>
        public override FileNode CreateFileNode( ProjectElement item )
        {
            var node = new PowerShellProjectFileNode( this, item );

            node.OleServiceProvider.AddService( typeof (EnvDTE.Project),
                                                new OleServiceProvider.ServiceCreatorCallback( CreateServices ),
                                                false );
            node.OleServiceProvider.AddService( typeof (ProjectItem), node.ServiceCreator, false );
            node.OleServiceProvider.AddService( typeof (VSProject),
                                                new OleServiceProvider.ServiceCreatorCallback( CreateServices ),
                                                false );

            return node;
        }