-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Area: DocumentationIssues about docs, including errors and areas we should extend (this repo and learn.microsoft.com)Issues about docs, including errors and areas we should extend (this repo and learn.microsoft.com)Area: Task: Resolve Assembly References (RAR)Priority:3Work that is nice to haveWork that is nice to have
Description
https://learn.microsoft.com/en-us/visualstudio/msbuild/troubleshoot-assembly-references?view=visualstudio#assemblysearchpaths
https://github.com/MicrosoftDocs/visualstudio-docs/blob/main/docs/msbuild/troubleshoot-assembly-references.md#assemblysearchpaths
By default, there are ten locations
ResolveAssemblyReferencesearches (four if you use the .NET SDK), and each can be disabled by setting the relevant flag to false:
- Searching files from the current project is disabled by setting the
AssemblySearchPath_UseCandidateAssemblyFilesproperty to false.- Searching the reference path property (from a
.userfile) is disabled by setting theAssemblySearchPath_UseReferencePathproperty to false.- Using the hint path from the item is disabled by setting the
AssemblySearchPath_UseHintPathFromItemproperty to false.- Using the directory with MSBuild's target runtime is disabled by setting the
AssemblySearchPath_UseTargetFrameworkDirectoryproperty to false.- Searching assembly folders from AssemblyFolders.config is disabled by setting the
AssemblySearchPath_UseAssemblyFoldersConfigFileSearchPathproperty to false.- Searching the registry is disabled by setting the
AssemblySearchPath_UseRegistryproperty to false.- Searching legacy registered assembly folders is disabled by setting the
AssemblySearchPath_UseAssemblyFoldersproperty to false.- Looking in the GAC is disabled by setting the
AssemblySearchPath_UseGACproperty to false.- Treating the reference's Include as a real file name is disabled by setting the
AssemblySearchPath_UseRawFileNameproperty to false.- Checking the application's output folder is disabled by setting the
AssemblySearchPath_UseOutDirproperty to false.
Please could you clarify which four locations apply for the .NET SDK?
Separately, a numbered list might be clearer.
Metadata
Metadata
Assignees
Labels
Area: DocumentationIssues about docs, including errors and areas we should extend (this repo and learn.microsoft.com)Issues about docs, including errors and areas we should extend (this repo and learn.microsoft.com)Area: Task: Resolve Assembly References (RAR)Priority:3Work that is nice to haveWork that is nice to have