csc编码代码时如何引用‘COM’类的dll
我要编译源代码,调用一些自己写的dll,以及现有产品提供的COM类的dll。在运行命令时提示错误
csc /target:library /out:"E:\UCCAddon.dll" "E:\*.cs" /reference:"e:\baseforms.dll";"e:\publicapi.dll";"C:\Program Files (x86)\SAP\SAP Business One DI API\DI API 90\SAPbobsCOM90.dll"
----------------------------------------------------运行命令------------------------
E:\>csc /target:library /out:"E:\UCCAddon.dll" "E:\*.cs" /reference:"e:\basefor
ms.dll";"e:\publicapi.dll";"C:\Program Files (x86)\SAP\SAP Business One DI API\D
I API 90\SAPbobsCOM90.dll"
Microsoft (R) Visual C# Compiler version 4.6.0081.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only
supports language versions up to C# 5, which is no longer the latest version. Fo
r compilers that support newer versions of the C# programming language, see http
://go.microsoft.com/fwlink/?LinkID=533240
fatal error CS0009: 未能打开元数据文件“c:\Program Files (x86)\SAP\SAP Business
One DI API\DI API 90\SAPbobsCOM90.dll”--“试图加载格式不正确的程序。 ”
求高手帮助