Questions tagged [p4api.net]

P4API.NET is Perforce's own .NET API.

P4API.NET is the .NET API for , released by Perforce themselves.

It is distinct from which is a previous API from a third party.

The API documentation is unfortunately quite sparse.

56 questions
0
votes
2 answers

How to show output for file operations performed by Perforce API?

I am going to sync perforce files through perforce API. I expect output about each file operation. Something like what we see as output from p4 cmd: //depot/file.txt#1 - updating X:\file.txt //depot/file.txt#2 - deleted as X:\file.txt Here is my…
jing
  • 1,919
  • 2
  • 20
  • 39
0
votes
1 answer

BackgroundWorker not working for Perforce API

I am implementing Perforce API in my application. For few long processes, I am trying to implement backgroudworker. I have done the implementation before many times, I know the in and outs of the BGW, but this time I am just not able to get…
Niyojan
  • 544
  • 1
  • 6
  • 23
0
votes
1 answer

Perforce API (.NET): File sync is not working?

Using 2014.1.85.4506 API version. Just trying retrieve files from within a depot to be on in the workspace. I have an object with a local variables string localPath, string depotPath, string clientPath (which is the same as localPath), Repository…
gdoug
  • 715
  • 1
  • 5
  • 16
0
votes
1 answer

How to execute a perforce command like 'diff' within a P4api.net?

I am working with a p4api.net application and I need to make use of perforce 'diff' command in it. I couldn't find a right approach to execute this command. I need a way to execute the command inside the application and get its result. Thanks in…
Subhanandh
  • 141
  • 1
  • 11
0
votes
0 answers

P4Connection class is unavailable in P4api.net

I am trying to use P4Connection class and the problem is that I could not find that class in the p4api.net library that I have downloaded recently. Currently I am working with the use of Repository class which is not going well without the use of…
Subhanandh
  • 141
  • 1
  • 11
0
votes
1 answer

Accessing an existing P4 connection from p4api.net?

I've created a small console application using p4api.net which builds a changelist of files having particular attributes. So far so good, but it's unable to connect if I already have an existing connection open (like if I have an open instance of…
phoff
  • 173
  • 1
  • 10
0
votes
2 answers

With p4api.net, I can not load p4bridge.dll

With p4api.net, I can not load p4bridge.dll. I can't add it as a reference to the solution without getting the following error: If I don't include it, I get the following runtime exception: Test method CFTT.Business.Test.GeneralTests.ddddd threw…
Matt
  • 25,943
  • 66
  • 198
  • 303
0
votes
1 answer

command change with perforce

in order to get list of change in specific period we use the command change p4 changes @2001/04/01,@now i am using the p4api.net to get this list of changes so i have to use : P4Command cm1 = new P4Command(ps, "changes", true,…
gasroot
  • 515
  • 3
  • 15
0
votes
2 answers

How do I use the functionality of "P4 where" using the P4 .net API

The perforce command P4 where (Perforce Command Reference PDF) will give me the branch path, workspace path, and full local path of a specified file. I would like to know how to access this functionality (specifically the full local path of a file)…
0
votes
2 answers

Cannot retrieve perforce clients

I am trying to develop a C# based build tool using p4api.net apis. I am new to perforce p4api.net. I followed the instructions given in p4api.net library downloaded from their site, but was never successful in running a basic command on perforce. I…
-1
votes
1 answer

Using Perforce C# API, how do I check whether a change list was integrated to other branches

For example, I have branch //source/b1/... and //source/b2/... I checked in a change list @123 to b1 branch. I would like to write a tool to check whether @123 was integrated to b2 using perforce C# API. Image I need check in many change lists to…
1 2 3
4