當前位置: 首頁>>代碼示例>>C#>>正文


C# Project.ProjectElement類代碼示例

本文整理匯總了C#中Microsoft.VisualStudioTools.Project.ProjectElement的典型用法代碼示例。如果您正苦於以下問題:C# ProjectElement類的具體用法?C# ProjectElement怎麽用?C# ProjectElement使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ProjectElement類屬於Microsoft.VisualStudioTools.Project命名空間,在下文中一共展示了ProjectElement類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: WebPiReferenceNode

 internal WebPiReferenceNode(ProjectNode root, ProjectElement element, string filename, string productId, string friendlyName)
     : base(root, element) {
     Utilities.ArgumentNotNullOrEmpty("filename", filename);
     _feed = filename;
     _productId = productId;
     _friendlyName = friendlyName;
 }
開發者ID:smallwave,項目名稱:PTVS,代碼行數:7,代碼來源:WebPiReferenceNode.cs

示例2: NodejsFileNode

 public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
     : base(root, e) {
     if (Url.Contains(AnalysisConstants.NodeModulesFolder)) {
         root.EnqueueForDelayedAnalysis(this);
     } else {
         Analyze();
     }
 }
開發者ID:CforED,項目名稱:Node.js-Tools-for-Visual-Studio,代碼行數:8,代碼來源:NodejsFileNode.cs

示例3: PythonExtensionReferenceNode

        internal PythonExtensionReferenceNode(PythonProjectNode root, ProjectElement element, string filename)
            : base(root, element) {
            Utilities.ArgumentNotNullOrEmpty("filename", filename);
            _filename = CommonUtils.GetAbsoluteFilePath(root.ProjectHome, filename);

            AnalyzeReference(root.GetInterpreter() as IPythonInterpreterWithProjectReferences);
            InitializeFileChangeEvents();
        }
開發者ID:omnimark,項目名稱:PTVS,代碼行數:8,代碼來源:PythonExtensionReferenceNode.cs

示例4: NodejsFileNode

        public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
            : base(root, e) {
            string referenceBaseName = Path.GetFileNameWithoutExtension(Caption);

#if FALSE
            CreateWatcher(Url);
#endif
            if (Url.Contains(AnalysisConstants.NodeModulesFolder)) {
                root.DelayedAnalysisQueue.Enqueue(this);
            } else {
                Analyze();
            }
        }
開發者ID:justin-romano,項目名稱:nodejstools,代碼行數:13,代碼來源:NodejsFileNode.cs

示例5: NodejsFileNode

        public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
            : base(root, e) {
            string referenceBaseName = Path.GetFileNameWithoutExtension(Caption);

#if FALSE
            CreateWatcher(Url);
#endif
            if (ShouldAnalyze) {
                root.Analyzer.AnalyzeFile(Url, !IsNonMemberItem);
                root._requireCompletionCache.Clear();
            }
            
            ItemNode.ItemTypeChanged += ItemNode_ItemTypeChanged;
        }
開發者ID:rodocite,項目名稱:nodejstools,代碼行數:14,代碼來源:NodejsFileNode.cs

示例6: CreateReferenceNode

        protected override ReferenceNode CreateReferenceNode(string referenceType, ProjectElement element) {
            if (referenceType == ProjectFileConstants.Reference) {
                string pyExtension = element.GetMetadata(PythonConstants.PythonExtension);
                if (!String.IsNullOrWhiteSpace(pyExtension)) {
                    return new PythonExtensionReferenceNode((PythonProjectNode)ProjectMgr, element, pyExtension);
                }
            } else if (referenceType == ProjectFileConstants.WebPiReference) {
                return new WebPiReferenceNode(
                    ProjectMgr,
                    element,
                    element.GetMetadata("Feed"),
                    element.GetMetadata("ProductId"),
                    element.GetMetadata("FriendlyName")
                );
            }

            return base.CreateReferenceNode(referenceType, element);
        }
開發者ID:omnimark,項目名稱:PTVS,代碼行數:18,代碼來源:PythonReferenceContainerNode.cs

示例7: CreateAssemblyReferenceNode

        protected override AssemblyReferenceNode CreateAssemblyReferenceNode(ProjectElement element) {
            AssemblyReferenceNode node = null;
            try {
                node = new PythonAssemblyReferenceNode((PythonProjectNode)this.ProjectMgr, element);
            } catch (ArgumentNullException e) {
                Trace.WriteLine("Exception : " + e.Message);
            } catch (FileNotFoundException e) {
                Trace.WriteLine("Exception : " + e.Message);
            } catch (BadImageFormatException e) {
                Trace.WriteLine("Exception : " + e.Message);
            } catch (FileLoadException e) {
                Trace.WriteLine("Exception : " + e.Message);
            } catch (System.Security.SecurityException e) {
                Trace.WriteLine("Exception : " + e.Message);
            }

            return node;
        }
開發者ID:jsschultz,項目名稱:PTVS,代碼行數:18,代碼來源:PythonReferenceContainerNode.cs

示例8: CreateReferenceNode

        protected override ReferenceNode CreateReferenceNode(string referenceType, ProjectElement element) {
            if (referenceType == ProjectFileConstants.Reference) {
                if (Path.GetExtension(element.Url).Equals(".pyd", StringComparison.OrdinalIgnoreCase)) {
                    return new DeprecatedReferenceNode(
                        ProjectMgr,
                        element,
                        element.GetMetadata(ProjectFileConstants.Include),
                        Strings.PydReferenceDeprecated
                    );
                }
            } else if (referenceType == ProjectFileConstants.WebPiReference) {
                return new DeprecatedReferenceNode(
                    ProjectMgr,
                    element,
                    element.GetMetadata("FriendlyName"),
                    Strings.WebPIReferenceDeprecated
                );
            }

            return base.CreateReferenceNode(referenceType, element);
        }
開發者ID:jsschultz,項目名稱:PTVS,代碼行數:21,代碼來源:PythonReferenceContainerNode.cs

示例9: CreateNonCodeFileNode

 public override CommonFileNode CreateNonCodeFileNode(ProjectElement item)
 {
     return new TrackedFileNode(this, item);
 }
開發者ID:Boddlnagg,項目名稱:VisualRust,代碼行數:4,代碼來源:RustProjectNode.cs

示例10: CreateFileNode

 public override FileNode CreateFileNode(ProjectElement item)
 {
     if (String.IsNullOrEmpty(item.ItemTypeName))
         return base.CreateFileNode(item);
     return CreateTrackedNode(item);
 }
開發者ID:Boddlnagg,項目名稱:VisualRust,代碼行數:6,代碼來源:RustProjectNode.cs

示例11: PythonFolderNode

 public PythonFolderNode(CommonProjectNode root, ProjectElement element)
     : base(root, element) {
 }
開發者ID:RussBaz,項目名稱:PTVS,代碼行數:3,代碼來源:PythonFolderNode.cs

示例12: ReferenceNode

 /// <summary>
 /// constructor for the ReferenceNode
 /// </summary>
 protected ReferenceNode(ProjectNode root, ProjectElement element)
     : base(root, element) {
     this.ExcludeNodeFromScc = true;
 }
開發者ID:whuthj,項目名稱:VisualRust,代碼行數:7,代碼來源:ReferenceNode.cs

示例13: BaseFileNode

 public BaseFileNode(RustProjectNode node, ProjectElement elm, string path)
     : base(node, elm)
 {
     ProjectMgr = node;
 }
開發者ID:whuthj,項目名稱:VisualRust,代碼行數:5,代碼來源:BaseFileNode.cs

示例14: CreateReferenceNode

        protected virtual ReferenceNode CreateReferenceNode(string referenceType, ProjectElement element) {
            ReferenceNode node = null;
#if FALSE
            if(referenceType == ProjectFileConstants.COMReference)
            {
                node = this.CreateComReferenceNode(element);
            }
            else 
#endif
            if (referenceType == ProjectFileConstants.Reference) {
                node = this.CreateAssemblyReferenceNode(element);
            } else if (referenceType == ProjectFileConstants.ProjectReference) {
                node = this.CreateProjectReferenceNode(element);
            }

            return node;
        }
開發者ID:CforED,項目名稱:Node.js-Tools-for-Visual-Studio,代碼行數:17,代碼來源:ReferenceContainerNode.cs

示例15: UntrackedFolderNode

 public UntrackedFolderNode(RustProjectNode root, ProjectElement elm)
     : base(root, elm)
 {
     ProjectMgr = root;
 }
開發者ID:whuthj,項目名稱:VisualRust,代碼行數:5,代碼來源:UntrackedFolderNode.cs


注:本文中的Microsoft.VisualStudioTools.Project.ProjectElement類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。