IVsRelativePathResolver Interface
Allows packages to resolve a relative path to an absolute path when IVsUIShellOpenDocument::SearchProjectsForRelativePath is called.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
<InterfaceTypeAttribute()> _
<GuidAttribute("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")> _
Public Interface IVsRelativePathResolver
'Uso
Dim instance As IVsRelativePathResolver
[InterfaceTypeAttribute()]
[GuidAttribute("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")]
public interface IVsRelativePathResolver
[InterfaceTypeAttribute()]
[GuidAttribute(L"26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")]
public interface class IVsRelativePathResolver
[<InterfaceTypeAttribute()>]
[<GuidAttribute("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")>]
type IVsRelativePathResolver = interface end
public interface IVsRelativePathResolver
Remarks
Implement this interface on an object that you proffer as a service. Register the GUID of the service at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\7.0\RelativePathResolvers. For example, to implement this object on your IVsPackage object, proffer your package as a service in your SetSite implementation; the GUID you register in the RelativePathResolvers sub key is the package GUID.
This interface allows a project language service to resolve relative paths against non-project items (for example, if a project has the concept of an INCLUDE search path). A language system that had the notion of global search paths as well as per-project search path might involve both the active project (as retrieved by IVsMonitorSelection::GetCurrentSelection) and its global package state.
Notes to Implementers
Implement on an object that is proffered as a service (for example, your package object) to resolve a relative path to an absolute path when IVsUIShellOpenDocument::SearchProjectsForRelativePath is called on your package.