Questions tagged [p4.net]

P4.NET is an API for Perforce and .NET provided by Perforce.

P4.NET is an API for Perforce and .NET provided by Perforce.

Reference: http://www.perforce.com/perforce/doc.current/manuals/p4api.net/p4api.net_reference/Index.html

Public Depot: http://public.perforce.com/wiki/P4.net

19 questions
5
votes
4 answers

P4.Net and P4CHARSET

I'm using P4.Net to connect to my non-unicode server however some commands i run fail with: "Unicode clients require a unicode enabled server." how do i change the P4CHARSET to none in P4.Net? I've tried P4Connection p4…
randomfigure
  • 420
  • 5
  • 13
4
votes
1 answer

Is it possible to use global options in P4.NET?

I am using P4.NET to control perforce programmatically but there doesn't seem to be a way to specify global options like this: http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.gopts.html Maybe someone else has an experience on how to do…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689
3
votes
1 answer

show perforce's depot in a treeview with c#

I'm not an expert in P4.NET and I would like to show perforce's depot in a treeview (windowsform application c#)... * "p4 dirs" to get all depots => p4 dirs "//*" for exemple this may give depot1 depot2 ..etc P4Connection p4 = new…
appiger
  • 31
  • 4
3
votes
0 answers

How can I bring up the progress GUI when running Client.SyncFiles in p4.net.api

Is there a way of spawning the progress GUI: (the one you would see if you do update from p4v), when running Client.SyncFiles? I have also tried spawning p4 sync a P4Command, but I cannot see how I can pass global flags (to run p4 -I sync…
Serge
  • 1,027
  • 14
  • 21
2
votes
1 answer

p4.net cannot connect Perforce

I am using p4.net API to generate some reports from the metadata. In one of the reports, I need to generate then number of the changes lines for each changeset report. As a reporting tool, I am using MS SQL Reporting services 2008, and I have…
AnarchistGeek
  • 3,049
  • 6
  • 32
  • 47
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
1
vote
1 answer

Perforce password (P4PASSWD) invalid or unset. how to solve using P4.Net

I did have some other issue with the API. so I installed Microsoft Visual C++ 2010 Redistributable Package (x86) from http://www.microsoft.com/download/en/details.aspx?id=5555 for solving those issues. the issues were solved installing this…
Abdullah Saurav
  • 33
  • 1
  • 1
  • 9
1
vote
1 answer

How to get revision number,author name using P4API in P4.NET?

I am new at using the P4api in C#.I have found a library p4api.dll.It shows that there is a class named P4Revision.But when I try to create an instance of that class,it says that no constructor there.Is there any other way to get the revision number…
Abdullah Saurav
  • 33
  • 1
  • 1
  • 9
1
vote
0 answers

How to pass global options to perforce command (P4 api .net)

I was wondering if it is possible to pass global options to perforce commands. As it stands now, it looks like I'm only able to pass global options to the connection itself Ex: connection.UserName = "user" Is there a way to pass in global options…
CodingMadeEasy
  • 2,257
  • 4
  • 19
  • 31
1
vote
1 answer

How to integrate 2 branches programatically

I have 2 branches in my depot. //depot/project/mainline/... //depot/project/staging/... I am using an in-house tool that manages the build of the project, and would like to create a build step that automatically promotes all the files from…
Smartelf
  • 849
  • 1
  • 10
  • 26
1
vote
1 answer

How to run a dos command with p4.Net API

I have some batch commands to run in the Perforce. Generally, I open the command prompt from "Perforce->Right click a file->Open Command Window Here". I am trying to automate some task that involves running a command from Command Window that is…
Ryota Kaneko
  • 67
  • 1
  • 7
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
0
votes
1 answer

Need way to parse the Protection table using P4.net DLL

I too need a way to find out, how to get and parse the protection table using the P4.net DLL. I am trying to run "p4 protects" command using P4.Net DLL. I just need a way to find out which AD Group has access to which branch of perforce tree.
Vijendra
  • 1
  • 1
0
votes
1 answer

Fetch role information of a Perforce branch using P4.Net DLL

I want to fetch role (AD Group) information of a P4 branch using P4.Net. Is there a way to find which AD Group has access to a perticular P4 branch.
Vijendra
  • 1
  • 1
0
votes
1 answer

Perforce .net API sync depot files

Since its difficult for me to understand P4 API documentation, I need help. I have a folder in a depot, say //root/a/... first I am running a preview to know the number of files going to be synced on a changelist, say 123. Client.ViewMap = new…
Niyojan
  • 544
  • 1
  • 6
  • 23
1
2