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
1
vote
1 answer

P4API.net: how to use P4Callbacks delegates

I am working on a small tool to schedule p4 sync daily at specific times. In this tool, I want to display the outputs from the P4API while it is running commands. I can see that the P4API.net has a P4Callbacks class, with several delegates:…
JulienH
  • 61
  • 3
1
vote
1 answer

Perforce API (P4API.NET): P4Exception: Too many trys to get lock p4tickets.txt.lck

I wrote an .NET Web Application to make Perforce connection but keeps getting below error message. This issue only occurs when I publish into the server. When I run this application in the local machine, it works perfectly fine but in the server, it…
1
vote
1 answer

Perforce P4Api.net add file get this Can't add filenames with wildcards [@#%*] in them

string f = "C:\Test@1234.txt" cmd = new P4Command(p4, "add", true, "-c", changelist.Id.ToString(), f); When my file name contains "@" this character , it log error exception : add file get this Can't add filenames with wildcards [@#%*] in them How…
TimChang
  • 2,249
  • 13
  • 25
1
vote
0 answers

Is it possible to use p4bridge.dll in Linux via .net core 3.0?

I'm using p4bridge in a web api .net core 3.0 application. On Windows I can execute perforce actions but on Linux p4bridge can't be loaded. I know p4bridge is a com dll used via p4api.dll, and foreseen this possible problem but I was wondering if…
Ovidiu I.
  • 45
  • 1
  • 5
1
vote
1 answer

C# P4API - How would i get the workspace path from depot path

Are there any commands that would return the workspace path if given the depot path?
ghost654
  • 161
  • 2
  • 18
1
vote
1 answer

P4JAVA Equivalent to p4 changes -m1 @workspace

I need to find out what is the last revision Synced to my workspace but using the P4JAVA API, Any help??
DevOops
  • 276
  • 2
  • 8
  • 20
1
vote
2 answers

how to get real time log via perforce api similar to p4v log

I am facing issue with perforce api (.net), as i am unable to pull sync logs in real time. - What am I trying to do I am trying to pull real time logs as Sync is triggered using the Perforce.P4.Client.SyncFiles() command. Similar to the P4V GUI…
1
vote
0 answers

How can i create a user with AuthMethod as ldap using p4api or something else in c#?

Can't find AuthMethod flag/member in User class or am i missing something ? user class members http://ftp.perforce.com/perforce/r15.2/doc/manuals/p4api.net/p4api.net_reference/html/AllMembers_T_Perforce_P4_User.htm Thanks in advance !!
1
vote
1 answer

How to edit/update perforce changelist description (created by A) with different user B using p4api.net

I am trying to edit a changelist description with different user in p4api.net. Is it possible to do it since i tried to edit the changelist description with different user but it didn't allow me. Let me know if there is any forceful way of…
test
  • 91
  • 11
1
vote
0 answers

Unable to revert changes in P4

I am trying to revert files in a change list with -a and -c option. I did manually like this. p4 revert -c 19264444 file ... pause p4 edit -c 19264444 GP*.* pause robocopy %SRC% %DEST% *.rom pause p4 revert -a 19264444 file ... Trying using…
test
  • 91
  • 11
1
vote
1 answer

Where is the P4API.NET source code?

I have a software project from 2010 where we integrated P4API.NET to communicate with Perforce servers. We used the source code instead of the binary then, since that gave us more flexibility. Right now I want to upgrade that project to the latest…
Thom
  • 21
  • 2
1
vote
3 answers

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

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…
isnotnull
  • 61
  • 4
  • 10
1
vote
1 answer

Perforce api - How to Command "Get Latest Revision"

I use Perforce Api (.net c#) works. source... //--------Connect-------- Perforce.P4.Server server = new Perforce.P4.Server(new Perforce.P4.ServerAddress("111.222.333.444")); Perforce.P4.Repository rep = new Perforce.P4.Repository(server); …
isnotnull
  • 61
  • 4
  • 10
1
vote
1 answer

Difference between P4.net and P4api.net

What is the exact difference between p4.net and p4api.net? I was trying to create a custom gui based tool for perforce and I started developing it using p4api.net. Much later I came to know about the existence of p4.net. Now I am confused with their…
Subhanandh
  • 141
  • 1
  • 11
1
vote
1 answer

Get valid FileMetaData from pending changelist in p4api.net

i need to build some treeview pretty much similar to the one in P4V, where pending changelists are listed; I could add the pending changelists to the treeview, and could add child nodes if i use GetFileName(), however i want the file's LocalPath,…
Bruno Brs
  • 673
  • 1
  • 6
  • 23