I'm currently developing an application in .NET 4 which has to interact with a Perforce server.
My team previously developed some sort of wrapper using the Perforce API, but its missing quite a few use-cases and doesn't properly handle exceptions. In short, it's not something that I can really use as-is, as it would require considerable effort to make it as "bullet-proof" as possible.
I was wondering if there's a Perforce API wrapper that exists for .NET which properly handles exceptions ?
As I was evaluating the usability of our in-house wrapper, I came up with a list of exceptions and use-cases our application would need to handle (and the wrapper would need to throw).
The list was quite exhaustive, which prompted me to wonder if some sort of wrapper already existed.
You might want to check out the P4API.NET library, which is provided by Perforce. Or you could use the P4.NET library, which isn't an official release from Perforce, but has been around for a while.
I've used P4.NET several times, and been pretty happy with it. You can get the .NET 4 libraries here, as I believe the original library only had support for .NET 2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With