VSTS构建错误 - 未注册MbnAPI库

时间:2018-05-01 11:44:46

标签: build continuous-integration azure-devops

我使用Visual Studio Team Services自动构建我的C#/ VB.Net解决方案。

在其中一个项目中,我们使用了Mobile Broadband API。解决方案/项目在从我的本地开发机器完成时没有任何问题,但是当在VSTS中自动化构建时,项目中存在使用MbnAPI的构建错误。 VSTS构建日志中的一些细节是:

Cannot get the file path for type library "dcbbbab6-0001-4bbb-aaee-338e368af6fa" version 1.0. Library not registered.

Warning BC40056: Namespace or type specified in the Imports 'MbnApi' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

云托管的构建服务器和内部自定义构建服务器都抛出了此错误。

这个MbnAPI dll没有通过NuGet添加到项目中,因为它不能通过这些方式获得。我认为这个问题是由于它"嵌入互操作类型"项目中的属性设置为" True"所以试着将它改成" False"和#34;复制本地" to" True"但它没有任何区别。

有没有人有任何想法来修复此VSTS构建错误?

提前致谢

0 个答案:

没有答案