在单声道中使用p4net.api



任何人都设法获得了perforce p4api.net使用Linux?

我的项目正确构建在Mono 2.8.4上,DLL(p4bridge.dll和p4api.net.dll都在bin/debug中,但是每当我尝试执行它时,我都会得到此例外:

Unhandled Exception: System.DllNotFoundException: p4bridge.dll
  at (wrapper managed-to-native) Perforce.P4.P4Bridge:ConnectA (string,string,string,string,Perforce.P4.P4CallBacks/LogMessageDelegate)
  at Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client) [0x00000] in <filename unknown>:0 
  at Perforce.P4.Connection.Connect (Perforce.P4.Options options) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: p4bridge.dll
  at (wrapper managed-to-native) Perforce.P4.P4Bridge:ConnectA (string,string,string,string,Perforce.P4.P4CallBacks/LogMessageDelegate)
  at Perforce.P4.P4Server..ctor (System.String server, System.String user, System.String pass, System.String ws_client) [0x00000] in <filename unknown>:0 
  at Perforce.P4.Connection.Connect (Perforce.P4.Options options) [0x00000] in <filename unknown>:0

API是最新的(2013.3),如提到的2.8.4,所有单声道RPM都是最新的。

再次提到,两个perforce dll均复制到bin/debug中,该项目正确编译了,并且确实找到了p4api.net.dll(如例外显示),但没有p4bridge.dll。我开始怀疑p4bridge.dll不是托管.NET库。

有什么想法?

- JFG

p4bridge不是托管库,因此您需要为要运行的每个平台构建它。

如果要在单声道中使用p4net.api,则可以查看p4connect源代码。该项目包括一个版本的p4net.api库,该库在单声道下在OSX中工作。他们尚未将该代码重新集成到主p4net.api库中。

最新更新