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)

[InterfaceTypeAttribute()]
[GuidAttribute("26831FB7-7C55-4AB1-B4AD-E37783F2D4A8")]
public interface IVsRelativePathResolver

The IVsRelativePathResolver type exposes the following members.

  NameDescription
Public methodResolveRelativePathResolves a relative path to an absolute path for a document.
Top

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft