次の方法で共有


IVsDesignTimeAssemblyResolution2.ResolveAssemblyPathInTargetFx2 Method

Definition

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.

public:
 int ResolveAssemblyPathInTargetFx2(cli::array <System::String ^> ^ prgAssemblySpecs, System::UInt32 cAssembliesToResolve, bool ignoreVersionForFrameworkReferences, cli::array <Microsoft::VisualStudio::Shell::Interop::VsResolvedAssemblyPath> ^ prgResolvedAssemblyPaths, [Runtime::InteropServices::Out] System::UInt32 % pcResolvedAssemblyPaths);
int ResolveAssemblyPathInTargetFx2(std::Array <std::wstring const &> const & prgAssemblySpecs, unsigned int cAssembliesToResolve, bool ignoreVersionForFrameworkReferences, std::Array <Microsoft::VisualStudio::Shell::Interop::VsResolvedAssemblyPath> const & prgResolvedAssemblyPaths, [Runtime::InteropServices::Out] unsigned int & pcResolvedAssemblyPaths);
public int ResolveAssemblyPathInTargetFx2 (string[] prgAssemblySpecs, uint cAssembliesToResolve, bool ignoreVersionForFrameworkReferences, Microsoft.VisualStudio.Shell.Interop.VsResolvedAssemblyPath[] prgResolvedAssemblyPaths, out uint pcResolvedAssemblyPaths);
abstract member ResolveAssemblyPathInTargetFx2 : string[] * uint32 * bool * Microsoft.VisualStudio.Shell.Interop.VsResolvedAssemblyPath[] * uint32 -> int
Public Function ResolveAssemblyPathInTargetFx2 (prgAssemblySpecs As String(), cAssembliesToResolve As UInteger, ignoreVersionForFrameworkReferences As Boolean, prgResolvedAssemblyPaths As VsResolvedAssemblyPath(), ByRef pcResolvedAssemblyPaths As UInteger) As Integer

Parameters

prgAssemblySpecs
String[]

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

cAssembliesToResolve
UInt32

Number of assembly names passed in to prgAssemblySpecs.

ignoreVersionForFrameworkReferences
Boolean

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

prgResolvedAssemblyPaths
VsResolvedAssemblyPath[]

Array containing the resolved assembly reference paths. The caller must preallocate this array for cAssembliesToResolve elements.

pcResolvedAssemblyPaths
UInt32

Number of resolved assembly paths in the prgResolvedAssemblyPaths output array.

Returns

Applies to