There is a search order for assemblies when building. The search order is as follows:
- Files from the current project – indicated by {CandidateAssemblyFiles}.
- $(ReferencePath) property that comes from .user/targets file.
- $(HintPath) indicated by reference item.
- Target framework directory.
- Directories found in registry that uses AssemblyFoldersEx Registration.
- Registered assembly folders, indicated by {AssemblyFolders}.
- $(OutputPath) or $(OutDir)
- GAC
- 当前项目文件夹下
- .user文件中$(ReferencePath)指定的目录
- 项目文件$(HintPath) 所指定目录
- 目标框架目录
- AssemblyFoldersEx注册项下的目录
- {AssemblyFolders}注册项指定目录
- 输出目录
- GAC