You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/msbuild/errors/msb3283.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "MSB3283 diagnostic code"
3
3
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
5
5
ms.topic: "error-reference"
6
6
f1_keywords:
7
7
- MSB3283
@@ -27,13 +27,26 @@ This article describes the MSB3283 error code.
27
27
## Message text
28
28
29
29
```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.
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`.
0 commit comments