IVsFrameworkMultiTargeting.ResolveAssemblyPath(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.