public Process ExecuteTfsDeleteWorkspace(MessageArgsWorkspaceDeletion messageArgs)
        {
            string additionalArgs = String.Concat("/t:DeleteWorkspace /p:TfsServerUrl=\"", messageArgs.TfsServerUrl, "\" /p:WorkspaceName=\"", messageArgs.WorkspaceName, "\" /p:UserName="******"\"", messageArgs.UserName, "\"");
            Process currentProcess = ExecuteMsbuildProject(messageArgs.ProjectPath, messageArgs.IpAddressSettings, additionalArgs);

            return currentProcess;
        }
 private void DeleteWorkSpaceIfExists(string tfsProjectPath, string currentTfsUserName, string tfsUrl, IpAddressSettings msBuildLoggerIpSettings, string workspaceName)
 {
     if (!String.IsNullOrEmpty(workspaceName))
     {
         MessageArgsWorkspaceDeletion tfsWorkspaceDeletionArgs = new MessageArgsWorkspaceDeletion(Command.TFSWD, tfsProjectPath, msBuildLoggerIpSettings, tfsUrl, workspaceName, currentTfsUserName);
         Process currentlyExecutedProcess = ATACore.CommandLine.CommandLineExecutor.ExecuteTfsDeleteWorkspace(tfsWorkspaceDeletionArgs);
         currentlyExecutedProcess.WaitForExit(Int32.MaxValue);
     }
 }
 public string GenerateDeleteWorkspacetMessage(string projectPath, string tfsServerUrl, string workspaceName, string userName, IpAddressSettings ipAddressSettings)
 {
     MessageArgsWorkspaceDeletion messageArgs = new MessageArgsWorkspaceDeletion(Command.TFSWD, projectPath, ipAddressSettings, tfsServerUrl, workspaceName, userName);
     string result = GenerateCurrentCommandParametersXml(messageArgs);
     return result;
 }