ManagedAssemblyReference.

ResolveAssemblyReference() Method

Summary

Resolves an assembly reference.
Assembly
NAnt.VSNet.dll
Namespace
NAnt.VSNet
Containing Type
ManagedAssemblyReference

Syntax

protected override string ResolveAssemblyReference()

Remarks

Visual Studio .NET uses the following search mechanism :

  1. The project directory.
  2. The directories specified in the "ReferencePath" property, which is stored in the .USER file.
  3. The .NET Framework directory (see KB306149)
  4. The directories specified under the following registry keys:

    • HKLM\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
    • HKCU\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
    • HKLM\SOFTWARE\Microsoft\VisualStudio\<major version>.<minor version>\AssemblyFolders
    • HKCU\SOFTWARE\Microsoft\VisualStudio\<major version>.<minor version>\AssemblyFolders

    Future versions of Visual Studio .NET will also check in:

    • HKLM\SOFTWARE\Microsoft\.NETFramework\AssemblyFoldersEx
    • HKCU\SOFTWARE\Microsoft\.NETFramework\AssemblyFoldersEx
  5. The HintPath.

Return Value

Type Description
string The full path to the resolved assembly, or null if the assembly reference could not be resolved.