/// <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); }
/// <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; }