Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

System.Object
  Microsoft.Build.Utilities.Task
    Microsoft.Build.Tasks.TaskExtension
      Microsoft.Build.Tasks.ResolveAssemblyReference

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.

  NameDescription
Public methodResolveAssemblyReferenceInfrastructure. Initializes a new instance of the ResolveAssemblyReference class.
Top
  NameDescription
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 propertyBuildEngine4Gets the instance of the IBuildEngine4 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 propertyIgnoreTargetFrameworkAttributeVersionMismatchGets or sets a flag indicating whether to ignore the framework attribute when checking if an assembly is compatible with the targeted framework.
Public propertyIgnoreVersionForFrameworkReferencesGets or sets a flag indicating whether to ignore the version information on the framework assembly and actually resolve the framework assembly from the currently targeted framework. Flag applies if the primary reference is a framework assembly.
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 propertyResolvedSDKReferencesA list of resolved SDK references which contain the sdk name, sdk location and the targeted configuration. These locations will only be searched if the reference has the SDKName metadata attached to it.
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 propertyWarnOrErrorOnTargetArchitectureMismatchGets or sets a string value specifying the behavior when a mismatch between the target processor architecture and the architecture of a primary reference. When this is “Error”, an error will be logged for a mismatch. When this is “Warning”, a warning will be logged for a mismatch. When this is “None”, no error or warning will be logged for a mismatch.
Top
  NameDescription
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 the default hash function. (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.)
Top

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.