Freigeben über


IVsFrameworkMultiTargeting2.ResolveAssemblyPath2 Method

Resolves the assembly path in the given target 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 ResolveAssemblyPath2 ( _
    pwszAssemblySpec As String, _
    pwszTargetFrameworkMoniker As String, _
    ignoreVersionForFrameworkReferences As Boolean _
) As String
string ResolveAssemblyPath2(
    string pwszAssemblySpec,
    string pwszTargetFrameworkMoniker,
    bool ignoreVersionForFrameworkReferences
)
String^ ResolveAssemblyPath2(
    [InAttribute] String^ pwszAssemblySpec, 
    [InAttribute] String^ pwszTargetFrameworkMoniker, 
    [InAttribute] bool ignoreVersionForFrameworkReferences
)
abstract ResolveAssemblyPath2 : 
        pwszAssemblySpec:string * 
        pwszTargetFrameworkMoniker:string * 
        ignoreVersionForFrameworkReferences:bool -> string
function ResolveAssemblyPath2(
    pwszAssemblySpec : String, 
    pwszTargetFrameworkMoniker : String, 
    ignoreVersionForFrameworkReferences : boolean
) : String

Parameters

  • pwszAssemblySpec
    Type: String

    [in] The assembly specification that needs to be resolved. The assembly specification is either a path or an assembly name. If it is a path, the assembly name is loaded from the path.

  • pwszTargetFrameworkMoniker
    Type: String

    [in] The target framework in which to resolve the assembly path.

  • ignoreVersionForFrameworkReferences
    Type: Boolean

    [in] Specifies if the version is to be ignored when resolving framework references. If true, the version is ignored.

Return Value

Type: String
The assembly path. Returns null if the assembly does not belong in the given target framework.

.NET Framework Security

See Also

Reference

IVsFrameworkMultiTargeting2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace