public Process ExecuteTfsCreateNewWorkspace(MessageArgsWorkspaceCreation messageArgs)
        {
            string additionalArgs = String.Concat("/t:CreateWorkspace /p:TfsServerUrl=\"", messageArgs.TfsServerUrl, "\" /p:WorkspaceName=\"", messageArgs.WorkspaceName, "\" /p:TfsPath=\"", messageArgs.TfsPath, "\" /p:LocalPath=\"", messageArgs.LocalPath, "\"");
            Process currentProcess = ExecuteMsbuildProject(messageArgs.ProjectPath, messageArgs.IpAddressSettings, additionalArgs);

            return currentProcess;
        }
 private void CreateNewWorkspace(string tfsProjectPath, string currentUserName, string tfsUrl, string tfsPath, string localPath, IpAddressSettings msBuildLoggerIpSettings, string newWorkspaceName)
 {
     MessageArgsWorkspaceCreation tfsWorkspaceCreationArgs = new MessageArgsWorkspaceCreation(Command.TFSWN, tfsProjectPath, tfsUrl, msBuildLoggerIpSettings, newWorkspaceName, tfsPath, localPath);
     Process currentlyExecutedProcess = ATACore.CommandLine.CommandLineExecutor.ExecuteTfsCreateNewWorkspace(tfsWorkspaceCreationArgs);
     currentlyExecutedProcess.WaitForExit(Int32.MaxValue);
     ATACore.RegistryManager.WriterWorkspaceNameToRegistry(currentUserName, localPath, newWorkspaceName);
 }
        public string GenerateCreateWorkspacetMessage(string projectPath, string tfsServerUrl, string workspaceName, string tfsPath, string localPath, IpAddressSettings ipAddressSettings)
        {
            MessageArgsWorkspaceCreation messageArgs = new MessageArgsWorkspaceCreation(Command.TFSWN, projectPath, tfsServerUrl, ipAddressSettings, workspaceName, tfsPath, localPath);

            string result = GenerateCurrentCommandParametersXml(messageArgs);
            return result;
        }