本文介绍MSB3283错误代码。
Message text
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.
Remarks
当 MSBuild 尝试引用指定类型库(.tlb 文件)的 COM 包装器时,该包装器找不到,因此发生此错误。 这可能是因为无法创建包装器。
问题可能是位数不正确,正如消息所示,但也有可能是其他问题。
类型库(.tlb 文件)包括 Windows 本机 COM 组件的类型定义。 COM 包装器是一个 .NET 程序集,允许从托管代码访问 COM 组件。 请参阅 将类型库作为程序集导入。
在 MSBuild 中,包装程序集通常由 ResolveCOMReference 任务根据 COMReference 为 COMFileReference 指定的详细信息生成。
检查 COMReference 或 COMFileReference 中提供的所有信息。
COMReference 使用注册表,因此,如果使用 COMReference,则应验证 COM 组件是否已正确注册。 请参阅 注册 COM 应用程序。
可以使用 COMFileReference 避免在生成计算机上注册 COM 组件。
Related content
Applies to
MSBuild 的所有版本