Udostępnij za pośrednictwem


IVsFrameworkMultiTargeting.ResolveAssemblyPath(String, String, String) Method

Definition

Tries to resolve the assembly path in the specified target framework.

public:
 int ResolveAssemblyPath(System::String ^ pwszAssemblySpec, System::String ^ pwszTargetFrameworkMoniker, [Runtime::InteropServices::Out] System::String ^ % pbstrResolvedAssemblyPath);
int ResolveAssemblyPath(std::wstring const & pwszAssemblySpec, std::wstring const & pwszTargetFrameworkMoniker, [Runtime::InteropServices::Out] std::wstring const & & pbstrResolvedAssemblyPath);
public int ResolveAssemblyPath (string pwszAssemblySpec, string pwszTargetFrameworkMoniker, out string pbstrResolvedAssemblyPath);
abstract member ResolveAssemblyPath : string * string * string -> int
Public Function ResolveAssemblyPath (pwszAssemblySpec As String, pwszTargetFrameworkMoniker As String, ByRef pbstrResolvedAssemblyPath As String) As Integer

Parameters

pwszAssemblySpec
String

[in] The assembly name/specification. This parameter can be either a path or an assembly name. If it is a path, the assembly name is loaded from the path.

pwszTargetFrameworkMoniker
String

[in] The moniker of the target framework.

pbstrResolvedAssemblyPath
String

[out, retval] The resolved assembly path. Returns null if the assembly does not belong in the given target framework.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to