示例#1
0
        /// <summary>
        /// Completes the project manager initialization process
        /// </summary>
        protected override void OnAggregationComplete()
        {
            base.OnAggregationComplete();

            string name;

            innerProject.GetMkDocument(VSConstants.VSITEMID_ROOT, out name);
            ProjectDir             = name.Substring(0, name.LastIndexOf('\\'));
            projectProxy           = new BuildProjectProxy(innerProject);
            itemList               = new ItemList(this);
            hierarchy_event_cookie = AdviseHierarchyEvents(itemList);
            ErrorHandler.ThrowOnFailure(GlobalServices.documentTracker.AdviseTrackProjectDocumentsEvents(this, out document_tracker_cookie));
        }
        /// <summary>
        /// Completes the project manager initialization process
        /// </summary>
        protected override void OnAggregationComplete()
        {
            base.OnAggregationComplete();

            string name;
            innerProject.GetMkDocument(VSConstants.VSITEMID_ROOT,out name);
            ProjectDir = name.Substring(0,name.LastIndexOf('\\'));
            projectProxy = new BuildProjectProxy(innerProject);
            itemList = new ItemList(this);
            hierarchy_event_cookie = AdviseHierarchyEvents(itemList);
            ErrorHandler.ThrowOnFailure(GlobalServices.documentTracker.AdviseTrackProjectDocumentsEvents(this, out document_tracker_cookie));
        }