Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.net wrapper for Perforce API?

Tags:

c#

.net

perforce

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.

like image 480
Hussein Khalil Avatar asked Feb 05 '12 03:02

Hussein Khalil


1 Answers

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.

like image 56
Mike O'Connor Avatar answered Oct 14 '22 04:10

Mike O'Connor