Changing Version Control to Visual Studio : Différence entre versions

[version en cours de rédaction][version en cours de rédaction]
Ligne 21 : Ligne 21 :
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Take a backup of the current build project</translate>
 
|Step_Title=<translate>Take a backup of the current build project</translate>
|Step_Content=<translate></translate>
+
|Step_Content=<translate>[[Archiving a TwinCAT Project]]</translate>
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Backup the Mappings information</translate>
 
|Step_Title=<translate>Backup the Mappings information</translate>
|Step_Content=<translate></translate>
+
|Step_Content=<translate>[[Creating Backup of TwinCAT Mapping]]</translate>
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step

Version du 21 mars 2022 à 14:59

Auteur avatarGareth Green | Dernière modification 12/09/2022 par Gareth Green en cours de rédaction

Introduction

In March 2022 the password policy of the system behind SourceTree / Bitbucket and Atlassian changed - link. This meant all machine would need a complex password login change for the SourceTree program used for version control of the PLC code.


This was not straight-forward to resolve, so the decision was made to change the version control system to the one that is packaged with the Visual Studio system by default. This is a better method anyway, but it needs the "TcXaeShell" installed.

...The TcXaeShell is simply a newer version of Visual Studio that includes Source control, rebadged for TwinCAT3

Étape 1 - Take a backup of the current build project

Archiving a TwinCAT Project

Étape 2 - Backup the Mappings information

Creating Backup of TwinCAT Mapping

Étape 3 - Ensure TcXAEShell is installed

  1. Right click on TwinCAT service in the task bar
  2. If TcXaeShell is installed you will see the gold Icon with the cog inside


There is a Visual Studio icon here instead, you will need to install TcXaeShell.

Procedure is here




Étape 4 - Open TwinCAT Shell



Étape 5 - Open the Machine Solution File



Étape 6 - Create the Repository

  1. Open Team Explorer
  2. Clone a new Git Repository
  3. URL to clone: https://bitbucket.org/StugaMachinery/tc3Multi
  4. Click on the destination setup
  5. Create a new folder under the machine build folder called "source"
  6. Click 'Clone'

Étape 7 - Enter Git Credentials (if required)

Atlassian Username is StugaMachinery

Password is stored in the file


G:\IT Department\SourceTree BitBucket App Password.txt

Étape 8 - Move The PLC_Reset and tc3Multi Project

  1. Right click the PLC_Reset Project
  2. Select Change Project
  3. Navigate to the repository you have created in Step 4 c:\TwinCAT\Stuga\BuildNo\source\PLC_Reset\PLC_Reset.plcproj
  4. Repeat for the tc3Multi project



Étape 9 - Delete the versionControl Folder

Delete the versionControl folder completely

...This prevents confusion in the future of where the project exists



Étape 10 - Update Control Systems Log

Update the Version Control column on the board to "VisualStudio" to log the completion of this task



Commentaires

Draft