Partilhar via


IVsDesignTimeAssemblyResolution2 Interface

Definition

Provides design time resolution of assembly reference paths in the current target framework. This interface retrieved as an ItemContext service from the project.

public interface class IVsDesignTimeAssemblyResolution2
public interface class IVsDesignTimeAssemblyResolution2
__interface IVsDesignTimeAssemblyResolution2
public interface IVsDesignTimeAssemblyResolution2
[System.Runtime.InteropServices.Guid("C0031543-0B20-4FA7-B627-8ED28F4B5F64")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsDesignTimeAssemblyResolution2
type IVsDesignTimeAssemblyResolution2 = interface
[<System.Runtime.InteropServices.Guid("C0031543-0B20-4FA7-B627-8ED28F4B5F64")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsDesignTimeAssemblyResolution2 = interface
Public Interface IVsDesignTimeAssemblyResolution2
Attributes

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:

  1. Get the active document window by calling GetCurrentElementValue(SEID_DocumentFrame, ...).

  2. Get the project item context IServiceProvider from the document window frame by calling GetProperty(VSFPROPID_SPProjContext,...).

  3. Call QueryService(SID_SVsDesignTimeAssemblyResolution, ...).

Methods

ResolveAssemblyPathInTargetFx2(String[], UInt32, Boolean, VsResolvedAssemblyPath[], UInt32)

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.

Applies to