Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi Team,
I am trying to use TF.exe merge command from processstartinfo() and Process it allow me to do that but problem is that it is not showing TFS conflict window.

Any Help Would Be Appriciated......

Regards
Sanju Prajapati
Posted

1 solution

Merge Command Is As Below:

ProcessStartInfo psi;
Process proc;
psi = new ProcessStartInfo(@"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe");
psi.Arguments = " merge" + " /recursive " + "/version:" + txtChangeset.Text + "~" + txtChangeset.Text + " " + '"' + ddSource.SelectedItem.ToString() + '"' + " " + '"' + ddTarget.SelectedItem.ToString() + '"';
psi.UseShellExecute = false;
psi.RedirectStandardError = true;
psi.CreateNoWindow = false;
psi.Verb = "runas";

proc = new Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.Verb = "runas";
using (proc = Process.Start(psi))
{
proc.WaitForExit();
}

Regards
Sanju Prajapati
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900