本文整理汇总了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;
}
示例2: NodejsFileNode
public NodejsFileNode(NodejsProjectNode root, ProjectElement e)
: base(root, e) {
if (Url.Contains(AnalysisConstants.NodeModulesFolder)) {
root.EnqueueForDelayedAnalysis(this);
} else {
Analyze();
}
}
示例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();
}
示例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();
}
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例9: CreateNonCodeFileNode
public override CommonFileNode CreateNonCodeFileNode(ProjectElement item)
{
return new TrackedFileNode(this, item);
}
示例10: CreateFileNode
public override FileNode CreateFileNode(ProjectElement item)
{
if (String.IsNullOrEmpty(item.ItemTypeName))
return base.CreateFileNode(item);
return CreateTrackedNode(item);
}
示例11: PythonFolderNode
public PythonFolderNode(CommonProjectNode root, ProjectElement element)
: base(root, element) {
}
示例12: ReferenceNode
/// <summary>
/// constructor for the ReferenceNode
/// </summary>
protected ReferenceNode(ProjectNode root, ProjectElement element)
: base(root, element) {
this.ExcludeNodeFromScc = true;
}
示例13: BaseFileNode
public BaseFileNode(RustProjectNode node, ProjectElement elm, string path)
: base(node, elm)
{
ProjectMgr = node;
}
示例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;
}
示例15: UntrackedFolderNode
public UntrackedFolderNode(RustProjectNode root, ProjectElement elm)
: base(root, elm)
{
ProjectMgr = root;
}