Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Provides design time resolution of assembly reference paths in the current target framework. This interface retrieved as an ItemContext service from the project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
Syntax
'Declaration
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("C0031543-0B20-4FA7-B627-8ED28F4B5F64")> _
Public Interface IVsDesignTimeAssemblyResolution2
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("C0031543-0B20-4FA7-B627-8ED28F4B5F64")]
public interface IVsDesignTimeAssemblyResolution2
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[GuidAttribute(L"C0031543-0B20-4FA7-B627-8ED28F4B5F64")]
public interface class IVsDesignTimeAssemblyResolution2
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<GuidAttribute("C0031543-0B20-4FA7-B627-8ED28F4B5F64")>]
type IVsDesignTimeAssemblyResolution2 = interface end
public interface IVsDesignTimeAssemblyResolution2
The IVsDesignTimeAssemblyResolution2 type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
![]() |
ResolveAssemblyPathInTargetFx2 | Resolves the assembly reference paths for the passed in assemblies while giving the ability to ignore version when resolving a reference from the targeted framework. |
Top
Remarks
You can obtain a pointer to the project's IVsDesignTimeAssemblyResolution by querying for a SVsDesignTimeAssemblyResolution service on the IServiceProvider that is returned from GetItemContext. To get this service from the project context for the active document:
Get the active document window by calling GetCurrentElementValue(SEID_DocumentFrame, ...).
Get the project item context IServiceProvider from the document window frame by calling GetProperty(VSFPROPID_SPProjContext,...).
Call QueryService(SID_SVsDesignTimeAssemblyResolution, ...).
.gif)