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
7
votes
5 answers

Download depot files into local disk without a client workspace

I read one other post here that I can download a file from the Perforce depot into a local disk without a client workspace. To extend that further, I need to download all files (text & binary) from a depot dir into my local disk. Is this the…
Kevin
  • 515
  • 4
  • 11
  • 22
4
votes
1 answer

Building p4api.net.dll for 'Any CPU'

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…
3
votes
0 answers

Encoding/Charset problems using p4api.net SyncFiles

we've recently started using p4api.net and ran into a problem very quickly. The depot contains a lot of files having special characters in their names, especially german umlauts (ä,ö,ü,ß). When using the command line (p4 sync) the files are synced…
Frederic
  • 116
  • 4
3
votes
2 answers

Using p4 api .NET to add files to a Changelist

My overall goal is to be able to sync, check out, and check in files within a workspace. This is the main part I am confused about: IList files = new List(); FileSpec file = new FileSpec(testpath, null, locpath,…
JuiceZBox
  • 111
  • 1
  • 8
3
votes
1 answer

Perforce P4API.NET Repository.GetDepotFiles() returns deleted files

I used the Perforce Repository.GetDepotFiles() and noticed that the function returns files that match the search pattern but also returns files that have been deleted in the Perforce Depot. How do I filter out the search to exclude deleted…
Kevin
  • 515
  • 4
  • 11
  • 22
2
votes
2 answers

P4Api client.GetFileMappings not returns leading minus/dash sign for branched files

I have files on P4 server under multiple branches e.g. //depot/branch1/file.txt //depot/branch2/file.txt //depot/branch3/file.txt assume that file.txt is same file but different branches When i use commandline p4 -c testWorkspace where…
Luboš Suk
  • 1,526
  • 14
  • 38
2
votes
0 answers

P4API.NET compatibility in Linux

we've a service written in C# (dotnetcore 2.2) that uses P4API.NET library for performing perforce related operations. recently we migrated and hosted the same service in linux machine. after this we're getting below error message, Unable to load…
2
votes
0 answers

how to Implement batch file command in p4.net api

i want to implement below p4 commands in a batch file. Now i want to implement everything in a job service of .net using p4.net api. To do in .net using p4.net api: 1)First sync files or latest files at workspace path. 2)Create a new Change…
test
  • 91
  • 11
2
votes
1 answer

Can I get progress messages from a submit operation?

I'm using Perforce's P4API.NET to programmatically submit a large branch operation and would like to be able to provide my users with some feedback. When using the command-line p4 client, there's a -I option for getting progress reports. Is there…
Ganesh Sittampalam
  • 28,821
  • 4
  • 79
  • 98
2
votes
1 answer

using p4net.api in Mono

Anyone managed to get the Perforce p4api.net work with Linux ? My projects build correctly on Mono 2.8.4, the dlls (p4bridge.dll and p4api.net.dll are in bin/Debug, but whenever I try to execute it, I get this exception : Unhandled Exception:…
2
votes
1 answer

Perforce : Revert files without losing its modification

To let you understand my problem, i must give some brief explanation about the way my client application works. First, we create workspaces with allwrite set, this is because our programming language (PowerBuilder) does not writes directly to txt…
Bruno Brs
  • 673
  • 1
  • 6
  • 23
2
votes
2 answers

seek the changes of a file

i wish detect lines changed of the defferent versions of a file in perforce my problem is that when i tried to get the different versions of the file i get always the last version how can i proceed to get the different versions String password =…
user2181871
1
vote
1 answer

Perforce P4 .NET API returns Perforce Password (P4PASSWD) invalid

I'm writing a VS C# app using the p4api.net to access a P4 server. The P4V app accesses the depository fine with a given user/password. Using p4api.net API, the code executed the Connect() & Login() methods without exception using…
Kevin
  • 515
  • 4
  • 11
  • 22
1
vote
0 answers

p4api.net SyncFiles Progress

Is it possible wit p4api.net to SyncFiles (Get Latest) from perforce and have progress indicator similar to one from P4V? Thanks for any idea!
Václav Starý
  • 327
  • 4
  • 11
1
vote
2 answers

How to Checkout file to Default ChangeList?

Here is my code I want to check out file to default changelist. But I don't know my default changlist ID. How can I get it? string command = "-c"; string f = filePath; cmd = new P4Command(p4, "add", true, command,…
TimChang
  • 2,249
  • 13
  • 25
1
2 3 4