AssemblyReferenceNode.ResolveReference Method

Sets the Url and ResolvedAssembly() properties if either the strong or the weak assembly name can be resolved.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Protected Overrides Sub ResolveReference
'使用

Me.ResolveReference()
protected override void ResolveReference()
protected:
virtual void ResolveReference() override
protected override function ResolveReference()

Remarks

This method returns silently if this node's Project Manager (a ProjectNode, which manages the persistent state of the project) is either null or closed. If the Project Manager is neither, the method calls [M:Microsoft.VisualStudio.ProjectNode.BuildProject.GetEvaluatedItemsByName(F:Microsoft.VisualStudio.Package.ProjectFileConstants.ReferencePath)] to get the corresponding BuildItemGroup, and iterates through the members of the group to check the strong and weak assembly names. If it finds a match, it sets the name and full path of the assembly reference node.

Permissions

See Also

Reference

AssemblyReferenceNode Class

AssemblyReferenceNode Members

Microsoft.VisualStudio.Package Namespace