共用方式為


ToolLocationHelper.GetAssemblyFoldersFromConfigInfo Method

Definition

Get a sorted list of AssemblyFoldersFromConfigInfo which contain information about what directories the 3rd party assemblies are registered under for use during build and design time.

This method will read the specified configuration file and enumerate the and return a list of AssemblyFoldersFromConfigInfo in the same order in which they will be searched during both design and build time for reference assemblies.

public:
 static System::Collections::Generic::IList<Microsoft::Build::Utilities::AssemblyFoldersFromConfigInfo ^> ^ GetAssemblyFoldersFromConfigInfo(System::String ^ configFile, System::String ^ targetFrameworkVersion, System::Reflection::ProcessorArchitecture targetProcessorArchitecture);
public static System.Collections.Generic.IList<Microsoft.Build.Utilities.AssemblyFoldersFromConfigInfo> GetAssemblyFoldersFromConfigInfo (string configFile, string targetFrameworkVersion, System.Reflection.ProcessorArchitecture targetProcessorArchitecture);
static member GetAssemblyFoldersFromConfigInfo : string * string * System.Reflection.ProcessorArchitecture -> System.Collections.Generic.IList<Microsoft.Build.Utilities.AssemblyFoldersFromConfigInfo>
Public Shared Function GetAssemblyFoldersFromConfigInfo (configFile As String, targetFrameworkVersion As String, targetProcessorArchitecture As ProcessorArchitecture) As IList(Of AssemblyFoldersFromConfigInfo)

Parameters

configFile
String

Full path to the Assembly Folders config file.

targetFrameworkVersion
String

The targeted framework version (2.0, 3.0, 3.5, 4.0, etc).

targetProcessorArchitecture
ProcessorArchitecture

What processor architecture is being targeted. This determines which registry hives are searched in what order. On a 64 bit operating system we do the following If you are targeting 64 bit (target x64 or ia64) Add in the 64 bit assembly folders first Add in the 32 bit assembly folders second If you are not targeting a 64 bit Add in the 32 bit assembly folders first Add in the 64 bit assembly folders second On a 32 bit machine we only add in the 32 bit assembly folders.

Returns

List of AssemblyFoldersFromConfigInfo

Applies to