ResolveAssemblyReference.SearchPaths Property
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.
List of locations to search for assemblyFiles when resolving dependencies. The following types of things can be passed in here: (1) A plain old directory path. (2) {HintPathFromItem} -- Look at the HintPath attribute from the base item. This attribute must be a file name not a directory name. (3) {CandidateAssemblyFiles} -- Look at the files passed in through the CandidateAssemblyFiles parameter. (4) {Registry:AssemblyFoldersBase,RuntimeVersion,AssemblyFoldersSuffix} Where:
_AssemblyFoldersBase_ = Software\Microsoft[.NetFramework | .NetCompactFramework]
_RuntimeVersion_ = the runtime version property from the project file
_AssemblyFoldersSuffix_ = [ PocketPC | SmartPhone | WindowsCE]\AssemblyFoldersEx
Then look in the registry for keys with the following schema:
[HKLM | HKCU]\SOFTWARE\MICROSOFT\.NetFramework\
v1.0.3705
AssemblyFoldersEx
ControlVendor.GridControl.1.0:
@Default = c:\program files\ControlVendor\grid control\1.0\bin
@Description = Grid Control for .NET version 1.0
9466
@Default = c:\program files\ControlVendor\grid control\1.0sp1\bin
@Description = SP1 for Grid Control for .NET version 1.0
The based registry key is composed as:
[HKLM | HKCU]_AssemblyFoldersBase__RuntimeVersion__AssemblyFoldersSuffix_
(5) {AssemblyFolders} -- Use the VisualStudion 2003 .NET finding-assemblies-from-registry scheme. (6) {GAC} -- Look in the GAC. (7) {RawFileName} -- Consider the Include value to be an exact path and file name.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
property cli::array <System::String ^> ^ SearchPaths { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
[Microsoft.Build.Framework.Required]
public string[] SearchPaths { get; set; }
[Microsoft.Build.Framework.Required]
public string[] SearchPaths { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
[<Microsoft.Build.Framework.Required>]
member this.SearchPaths : string[] with get, set
[<Microsoft.Build.Framework.Required>]
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.SearchPaths : string[] with get, set
Public Property SearchPaths As String()
Property Value
- Attributes