ResolveComReference Class
Implements the ResolveComReference task. Use the ResolveComReference element in your project file to create and execute this task. For usage and parameter information, see ResolveComReference Task.
System::MarshalByRefObject
Microsoft.Build.Utilities::AppDomainIsolatedTask
Microsoft.Build.Tasks::AppDomainIsolatedTaskExtension
Microsoft.Build.Tasks::ResolveComReference
Assembly: Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)
The ResolveComReference type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ResolveComReference | Infrastructure. Initializes a new instance of the ResolveComReference class. |
| Name | Description | |
|---|---|---|
![]() | BuildEngine | Gets or sets the build engine interface that is available to tasks. (Inherited from AppDomainIsolatedTask.) |
![]() | DelaySign | Infrastructure. Gets or sets a Boolean value that specifies whether the ResolveComReference task places the public key in the assembly (true) or fully signs the assembly (false). |
![]() | EnvironmentVariables | Gets or sets an array of name-value pairs of environment variables that should be passed to the spawned tlbimp.exe and aximp.exe in addition to (or selectively overriding) the regular environment block. |
![]() | ExecuteAsTool | Property to allow multitargeting of ResolveComReferences: If true, tlbimp.exe and aximp.exe from the appropriate target framework will be run out-of-proc to generate the necessary wrapper assemblies. |
![]() | HelpKeywordPrefix | Gets or sets the prefix that is used to compose Help keywords from string resource names. (Inherited from AppDomainIsolatedTask.) |
![]() | HostObject | Gets or sets a host object instance that is associated with the derived Task. (Inherited from AppDomainIsolatedTask.) |
![]() | IncludeVersionInInteropName | When set to true, the typelib version will be included in the wrapper name. Default is false. |
![]() | KeyContainer | Infrastructure. Gets or sets a container that holds a key pair. |
![]() | KeyFile | Infrastructure. Gets or sets an item that contains a key pair. |
![]() | Log | Infrastructure. Gets an instance of a TaskLoggingHelperExtension class containing task logging methods. (Inherited from AppDomainIsolatedTaskExtension.) |
![]() | NoClassMembers | Infrastructure. Gets or sets a Boolean value that specifies whether to pass the TypeLibImporterFlags::PreventClassMembers flag to .tlb wrapper generation. |
![]() | ResolvedAssemblyReferences | Infrastructure. Gets or sets the resolved assembly references. |
![]() | ResolvedFiles | Infrastructure. Gets or sets the fully qualified files on disk that correspond to the physical locations of the type libraries that were provided as input to this task. |
![]() | ResolvedModules | Infrastructure. Gets or sets the paths to the modules that were found. |
![]() | SdkToolsPath | If ExecuteAsTool is true, this must be set to the SDK tools path for the framework version being targeted. |
![]() | StateFile | Infrastructure. Gets or sets the cache file for COM component timestamps. |
![]() | TargetFrameworkVersion | The project target framework version. Default is empty. which means there will be no filtering for the reference based on their target framework. |
![]() | TargetProcessorArchitecture | Gets or sets the name of the preferred target processor architecture, which is passed to the tlbimp.exe /machine flag after translation, for example x86, ia64, amd64 or msil. |
![]() | TaskResources | Gets or sets culture-specific resources of the derived Task. (Inherited from AppDomainIsolatedTask.) |
![]() | TypeLibFiles | Infrastructure. Gets or sets the type library file path to COM references. |
![]() | TypeLibNames | Infrastructure. Gets or sets the type library names to resolve. |
![]() | WrapperOutputDirectory | Infrastructure. Gets or sets the location on disk where the generated interop assembly is placed. |
| Name | Description | |
|---|---|---|
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Execute | Infrastructure. Executes the ResolveComReference task. (Overrides AppDomainIsolatedTask::Execute().) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | When overridden in a derived class, gives tasks infinite lease time. (Inherited from AppDomainIsolatedTask.) |
![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
On a 64-bit machine, Framework64/<version>/msbuild cannot resolve COM objects registered as 32-bit components. For example, if you register a COM object with regsvr32 and then try to build a project targeting the x86 platform with Framework64/<version>/msbuild, the build is unable to resolve the COM object. If instead you build with Framework/<version>/msbuild, the build is able to resolve the COM object.
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.
