This documentation is archived and is not being maintained.

ResolveAssemblyReference Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Implements the ResolveAssemblyReference task. Use the ResolveAssemblyReference element in your project file to create and execute this task. For usage and parameter information, see ResolveAssemblyReference Task.


Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)

public class ResolveAssemblyReference : TaskExtension

The ResolveAssemblyReference type exposes the following members.

Public methodResolveAssemblyReferenceInfrastructure. Initializes a new instance of the ResolveAssemblyReference class.

Public propertyAllowedAssemblyExtensionsInfrastructure. Gets or sets the assembly extensions that will be considered during references resolution.
Public propertyAllowedRelatedFileExtensionsInfrastructure. Gets or sets the extensions that will be considered when searching for related files.
Public propertyAppConfigFileInfrastructure. Gets or sets the App.Config file path.
Public propertyAssembliesInfrastructure. Gets or sets the assembly names to resolve into full paths and to find dependencies for.
Public propertyAssemblyFilesInfrastructure. Gets or sets a list of fully qualified assembly paths to find dependencies for.
Public propertyAutoUnifyInfrastructure. Gets or sets a Boolean value that specifies whether the resulting dependency graph is automatically treated as if there were an App.Config file passed in to the AppConfigFile property.
Public propertyBuildEngineGets or sets the instance of the IBuildEngine object used by the task. (Inherited from Task.)
Public propertyBuildEngine2Gets the instance of the IBuildEngine2 object used by the task. (Inherited from Task.)
Public propertyBuildEngine3Gets the instance of the IBuildEngine3 object used by the task. (Inherited from Task.)
Public propertyCandidateAssemblyFilesInfrastructure. Gets or sets a list of assemblies, which must be absolute file names or project-relative file names, to use for the search and resolution process.
Public propertyCopyLocalDependenciesWhenParentReferenceInGacGets or sets a switch that determines how dependencies are determined, and whether or not a dependency is copied locally.
Public propertyCopyLocalFilesInfrastructure. Returns all files in the ResolvedFiles, ResolvedDependencyFiles, RelatedFiles, SatelliteFiles, and ResolveAssemblyReference properties that have the CopyLocal item metadata with a value of true.
Public propertyFilesWrittenInfrastructure. Gets or sets the items written to disk.
Public propertyFindDependenciesInfrastructure. Gets or sets a Boolean value that specifies whether dependencies will be found (true) or only primary references will be found (false).
Public propertyFindRelatedFilesInfrastructure. Gets or sets a Boolean value that specifies whether related files such as .pdb files and .xml files will be found.
Public propertyFindSatellitesInfrastructure. Gets or sets a Boolean value that specifies whether satellite assemblies will be found.
Public propertyFindSerializationAssembliesInfrastructure. Gets or sets a Boolean value that specifies whether the serialization assemblies will be found.
Public propertyFullFrameworkAssemblyTablesGets or sets a list of items representing XML files that contain the full framework for the profile.
Public propertyFullFrameworkFoldersGets or sets a list of folders which contain a RedistList directory which represent the full framework for a given client profile, for example:%programfiles%\reference assemblies\microsoft\framework\v4.0
Public propertyFullTargetFrameworkSubsetNamesInfrastructure. A string that contains the names of the subsets of the specified target framework.
Protected propertyHelpKeywordPrefixGets or sets the prefix used to compose Help keywords from resource names. (Inherited from Task.)
Public propertyHostObjectGets or sets the host object associated with the task. (Inherited from Task.)
Public propertyIgnoreDefaultInstalledAssemblySubsetTablesInfrastructure. Gets or sets a Boolean value that specifies whether the task should look for and use additional installed assembly subset tables (also known as Subset Lists), which are found in the SubsetList directory under the provided TargetFrameworkDirectories.
Public propertyIgnoreDefaultInstalledAssemblyTablesInfrastructure. Gets or sets a Boolean value that specifies whether the ResolveAssemblyReference task should ignore additional installed assembly tables found in the RedistList directory underneath the provided TargetFrameworkDirectories (true) or should search for and use these installed assembly tables (false).
Public propertyInstalledAssemblySubsetTablesInfrastructure. An ITaskItem that represents a list of XML files that contain assemblies that are expected to be in the target subset.
Public propertyInstalledAssemblyTablesInfrastructure. Gets or sets a list of XML files that contain assemblies that are expected to be installed on the target machine.
Public propertyLatestTargetFrameworkDirectoriesGets or sets the list of directories which contain the redist lists for the most current framework which can be targeted on the machine.
Public propertyLogInfrastructure. Gets an instance of a TaskLoggingHelperExtension containing task logging methods. (Inherited from TaskExtension.)
Public propertyProfileNameGets or sets the name of the target framework profile we are targeting, for example Client, Web, or Network
Public propertyRelatedFilesInfrastructure. Gets related files, such as .xml and .pdb files with the same base name as a reference.
Public propertyResolvedDependencyFilesInfrastructure. Gets the nth order paths to dependencies.
Public propertyResolvedFilesInfrastructure. Gets a list of all primary references resolved to full paths.
Public propertySatelliteFilesInfrastructure. Gets any satellite files found.
Public propertyScatterFilesInfrastructure. Gets the scatter files associated with one of the given assemblies.
Public propertySearchPathsInfrastructure. Specifies the directories or special locations that are searched to find the files on disk that represent the assemblies.
Public propertySerializationAssemblyFilesInfrastructure. Gets the serialization assemblies.
Public propertySilentInfrastructure. Gets or sets a Boolean value that specifies whether no messages are logged.
Public propertyStateFileInfrastructure. Gets or sets a file name that indicates where to save the intermediate build state for this task.
Public propertySuggestedRedirectsInfrastructure. Gets one item for every distinct conflicting assembly identity, regardless of the value of the AutoUnify property.
Public propertyTargetedRuntimeVersionGets or sets the name of the runtime we are targeting, for example, 2.0.57027.
Public propertyTargetFrameworkDirectoriesInfrastructure. Gets or sets the path to the target framework directory.
Public propertyTargetFrameworkMonikerGets or sets the target framework moniker being targeted, if any.
Public propertyTargetFrameworkMonikerDisplayNameGets or sets the display name of the target framework moniker being targeted, if any.
Public propertyTargetFrameworkSubsetsInfrastructure. A list of target framework subset names that will be searched for in the target framework directories.
Public propertyTargetFrameworkVersionInfrastructure. Gets or sets the project target framework version used for reference filtering.
Public propertyTargetProcessorArchitectureInfrastructure. Gets or sets the preferred target processor architecture used for resolving Global Assembly Cache (GAC) references, which can have a value of x86, IA64, or AMD64.
Protected propertyTaskResourcesGets or sets the culture-specific resources associated with the task. (Inherited from Task.)

Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExecuteInfrastructure. Executes the ResolveAssemblyReference task. (Overrides Task.Execute().)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.