다음을 통해 공유


IVsDesignTimeAssemblyResolution2.ResolveAssemblyPathInTargetFx2 Method

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.

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
Function ResolveAssemblyPathInTargetFx2 ( _
    prgAssemblySpecs As String(), _
    cAssembliesToResolve As UInteger, _
    ignoreVersionForFrameworkReferences As Boolean, _
    <OutAttribute> prgResolvedAssemblyPaths As VsResolvedAssemblyPath(), _
    <OutAttribute> ByRef pcResolvedAssemblyPaths As UInteger _
) As Integer
int ResolveAssemblyPathInTargetFx2(
    string[] prgAssemblySpecs,
    uint cAssembliesToResolve,
    bool ignoreVersionForFrameworkReferences,
    VsResolvedAssemblyPath[] prgResolvedAssemblyPaths,
    out uint pcResolvedAssemblyPaths
)
int ResolveAssemblyPathInTargetFx2(
    [InAttribute] array<String^>^ prgAssemblySpecs, 
    [InAttribute] unsigned int cAssembliesToResolve, 
    [InAttribute] bool ignoreVersionForFrameworkReferences, 
    [OutAttribute] array<VsResolvedAssemblyPath>^ prgResolvedAssemblyPaths, 
    [OutAttribute] unsigned int% pcResolvedAssemblyPaths
)
abstract ResolveAssemblyPathInTargetFx2 : 
        prgAssemblySpecs:string[] * 
        cAssembliesToResolve:uint32 * 
        ignoreVersionForFrameworkReferences:bool * 
        prgResolvedAssemblyPaths:VsResolvedAssemblyPath[] byref * 
        pcResolvedAssemblyPaths:uint32 byref -> int
function ResolveAssemblyPathInTargetFx2(
    prgAssemblySpecs : String[], 
    cAssembliesToResolve : uint, 
    ignoreVersionForFrameworkReferences : boolean, 
    prgResolvedAssemblyPaths : VsResolvedAssemblyPath[], 
    pcResolvedAssemblyPaths : uint
) : int

Parameters

  • prgAssemblySpecs
    Type: array<String[]

    Array of strings containing the list of assembly names that need to be resolved.

  • cAssembliesToResolve
    Type: UInt32

    Number of assembly names passed in to prgAssemblySpecs.

  • ignoreVersionForFrameworkReferences
    Type: Boolean

    Indicates if the version is to be ignored when resolving framework references. If true, the version is ignored.

  • pcResolvedAssemblyPaths
    Type: UInt32%

    Number of resolved assembly paths in the prgResolvedAssemblyPaths output array.

Return Value

Type: Int32

.NET Framework Security

See Also

Reference

IVsDesignTimeAssemblyResolution2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace