示例#1
0
 public static ShellOutput CheckIn(string comment,TFSAuthModel login)
 {
     try
     {
         string command = "tf checkin /comment:\"" + comment + "\" /login:"******"," + login.Password + " /noprompt";
         CommandHelper shell = new CommandHelper();
         return shell.ExecuteCommand(command, null);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
     return null;
 }
示例#2
0
 public static ShellOutput AddFiles(string path, TFSAuthModel login)
 {
     try
     {
         string command = "tf add *.sql" + " /login:"******"," + login.Password + " /noprompt";
         CommandHelper shell = new CommandHelper();
         return shell.ExecuteCommand(command, path);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
     return null;
 }
示例#3
0
 public static ShellOutput GetLatest(string path,TFSAuthModel login)
 {
     try
     {
         string command = "tf get \"" + path +  "\" /login:"******"," + login.Password + " /noprompt";
         CommandHelper shell = new CommandHelper();
         return shell.ExecuteCommand(command,null);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
     return null;
 }