p4api.net

Building p4api.net.dll for 'Any CPU'

老子叫甜甜 提交于 2019-12-14 04:17:57
问题 I got hit earlier this week with my first BadImageFormatException when trying to use the p4api.net.dll. Turns out my assumption that I could just use the 64-bit version of it and p4bridge.dll was incorrect! In my investigation I noticed I had a warning: warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "p4api.net, Version=2014.3.100.9144, Culture=neutral, PublicKeyToken=f6b9b9d036c873e1,

Perforce Api - How to command “get revision [changelist number]”

会有一股神秘感。 提交于 2019-12-11 07:18:50
问题 I would like to implement the Perforce command "Get Revision [Changelist Number]" using the Perforce .NET API (C#). I currently have code that will "Get Latest Revision", but I need to modify it to get a specific changelist. To sync the data with a changelist number, what should I do? Source // --------Connenct---------------- Perforce.P4.Server server = new Perforce.P4.Server( new Perforce.P4.ServerAddress("127.0.0.1:9999")); Perforce.P4.Repository rep = new Perforce.P4.Repository(server);