Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
[InterfaceTypeAttribute(1)] [GuidAttribute("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")] public interface IVsRelativePathResolver
/** @attribute InterfaceTypeAttribute(1) */ /** @attribute GuidAttribute("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8") */ public interface IVsRelativePathResolver
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 yourimplementation; 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::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. ) and its global package state.