Skip to content

Commit 57b7ae4

Browse files
authored
Merge pull request #13599 from ghogen/msbuild-3283
Add details for MSB3283
2 parents df3cde7 + 56bb0c6 commit 57b7ae4

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

docs/msbuild/errors/msb3283.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "MSB3283 diagnostic code"
33
description: "Cannot find wrapper assembly for type library 'value'. Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit."
4-
ms.date: 12/06/2024
4+
ms.date: 2/7/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3283
@@ -27,13 +27,26 @@ This article describes the MSB3283 error code.
2727
## Message text
2828

2929
```output
30-
MSB3283: Cannot find wrapper assembly for type library 'value'. Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.
30+
MSB3283: Cannot find wrapper assembly for type library 'type library'. Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.
3131
```
3232

3333
<!-- :::editable-content name="postOutputDescription"::: -->
34-
<!--
35-
{StrBegin="MSB3283: "}
36-
-->
34+
## Remarks
35+
36+
This error occurs when MSBuild is attempting to reference a COM wrapper for the specified type library (`.tlb` file), but it couldn't be found. This could be because the wrapper couldn't be created.
37+
38+
The problem could be that bitness is incorrect, as the message suggests, but it could be another issue.
39+
40+
A type library (`.tlb` file) includes type definitions for Windows native COM components. A COM wrapper is a .NET assembly that allows the COM components to be accessed from managed code. See [Importing a type library as an assembly](/dotnet/framework/interop/importing-a-type-library-as-an-assembly).
41+
42+
In MSBuild, a wrapper assembly is typically generated from the details specified in a [COMReference](../common-msbuild-project-items.md#comreference) for [COMFileReference](../common-msbuild-project-items.md#comfilereference) by the [ResolveCOMReference](../resolvecomreference-task.md) task.
43+
44+
Check all the information provided in the `COMReference` or `COMFileReference`.
45+
46+
`COMReference` uses the registry, so if you're using `COMReference`, you should verify that the COM component is correctly registered. See [Registering COM applications](/windows/win32/com/registering-com-applications).
47+
48+
You can avoid registering the COM components on the build machine by using `COMFileReference`.
49+
3750
<!-- :::editable-content-end::: -->
3851
<!-- :::ErrorDefinitionDescription-end::: -->
3952

0 commit comments

Comments
 (0)