Table of Contents
1 - Introduction2 - Integrating with other applications
3 - User interface reference
4 - Tutorials
Contact Information
Sales
Sales and licensing related questions should be sent to our sales team at:Feedback
If you have feedback regarding this website or any of our products, please use the following email address:Support
Questions related to problems you have encountered with either this website or any of our products should be directed to our support team at:Enquiries
Any other questions, or general enquiries should be sent to the following email address:2.2 - Integrating with P4V
P4V allows third party tools to integrate to provide comparison and non-automated merge operations for complex file types. This page details how to integrate Project: Merge to provide comparison and merge services for Visual Studio project files. The steps here though can be adapted for any type of XML file.
First we'll set up Project: Merge to compare files. Click on the Diff tab at the top of the Preferences Dialog and then on the Add button below to open the Add File Type dialog:

Extension
.vcproj - This is the file extension for pre-2010 Visual Studio project files.
.vcproj - This is the file extension for pre-2010 Visual Studio project files.
Application
Browse to the Project: Merge application folder and select the Project: Merge executable. This will be located under either Program Files or Program Files (x86) depending on whether you are using a 32-bit or 64-bit version of Windows.
Browse to the Project: Merge application folder and select the Project: Merge executable. This will be located under either Program Files or Program Files (x86) depending on whether you are using a 32-bit or 64-bit version of Windows.
Arguments
-compare -left %1 -right %2 - These are the command line options instructing Project: Merge to compare the two files specified by Perforce.
-compare -left %1 -right %2 - These are the command line options instructing Project: Merge to compare the two files specified by Perforce.
When you have filled out the above details, click the Save button to save the changes in Perforce. Perforce should now invoke Project: Merge when you attempt to compare two Visual Studio project files.
Now we'll set up Perforce to use Project: Merge when merging files. Perforce always performs three-way merges with a common base file and two changed files that are combined into a single result file.
In the P4V Preferences Dialog, click on the Merge tab and then on the Add button as before to open the Add New Type dialog:

Extension
.vcproj - This is the file extension for pre-2010 Visual Studio project files.
.vcproj - This is the file extension for pre-2010 Visual Studio project files.
Application
Browse to the Project: Merge application folder and select the Project: Merge executable. This will be located under either Program Files or Program Files (x86) depending on whether you are using a 32-bit or 64-bit version of Windows.
Browse to the Project: Merge application folder and select the Project: Merge executable. This will be located under either Program Files or Program Files (x86) depending on whether you are using a 32-bit or 64-bit version of Windows.
Arguments
-merge -base %b -left %1 -right %2 -result %r - These are the command line options instructing Project: Merge to merge the three input files specified by P4V into a single output file which P4V will read back once the merge is complete.
When you have filled out the above details, click the Save button to save the changes in Perforce. Perforce should now invoke Project: Merge
when you attempt to resolve conflicted Visual Studio project files.-merge -base %b -left %1 -right %2 -result %r - These are the command line options instructing Project: Merge to merge the three input files specified by P4V into a single output file which P4V will read back once the merge is complete.
You can add any other XML file associates for Project: Merge in exactly the same way. The difference from the steps above is the file extension of the files you wish to associate with Project: Merge. For example, you can use Project: Merge to compare and merge Visual Studio Property Sheets by replacing the .vcproj file extension with .vsprops.