DeploymentTracker.App.Windows.PackageDeployment.AssignCloudArgsNoBuild C# (CSharp) Method

AssignCloudArgsNoBuild() private method

Assigns the cloud args no build.
private AssignCloudArgsNoBuild ( string currentVersionForlocalDeploy ) : void
currentVersionForlocalDeploy string The current version forlocal deploy.
return void
        private void AssignCloudArgsNoBuild(string currentVersionForlocalDeploy)
        {
            string solutionName = Path.GetFileNameWithoutExtension(this.txtPackagePath.Text);
            string internalversion = this.cbxIsRollback.Checked ? this.rollbackVersionToLog : currentVersionForlocalDeploy;
            string modifiedSolutionName = this.cbxIsRollback.Checked ?
                        string.Concat(solutionName, "-", internalversion, Constants.RollbackFolderExtension) :
                        string.Concat(solutionName, "-", internalversion);
            string backupPath = Path.Combine(Settings.Default.TFSWorkingPath, modifiedSolutionName, Constants.AzurePackagesFolderName);
            if (!Directory.Exists(backupPath))
            {
                Directory.CreateDirectory(backupPath);
            }

            string backUpPackagePath = Path.Combine(backupPath, Path.GetFileName(this.txtPackagePath.Text));
            string backUpConfigPath = Path.Combine(backupPath, Path.GetFileName(this.txtConfigPath.Text));
            File.Copy(this.txtPackagePath.Text, backUpPackagePath, true);
            File.Copy(this.txtConfigPath.Text, backUpConfigPath, true);

            // This is for cloud deployment'
            this.cloudArgs.IsBuildCompleted = true;
            this.cloudArgs.PackageFilePath = backUpPackagePath;
            this.cloudArgs.ServiceConfigFilePath = backUpConfigPath;
            this.cloudArgs.InternalVersionNumber = internalversion;
            this.cloudArgs.AzureLogFilePath = Path.Combine(Settings.Default.DeploymentLogPath,
                string.Concat(string.Concat(solutionName, "-", this.cloudArgs.InternalVersionNumber, this.cbxIsRollback.Checked ? Constants.RollbackFolderExtension : string.Empty), Constants.LogsFolderExtension),
                string.Concat(Path.GetFileNameWithoutExtension(backUpPackagePath), "-", this.cloudArgs.InternalVersionNumber, Constants.AzureLogIdentifier, Constants.LogExtension));
            this.cloudDeploymentLogPath = this.cloudArgs.AzureLogFilePath;
        }