Renaming a project
Scenario
An existing project is to be reused for a new machine. For this purpose, the project is to be given the name of the new machine.
Challenge
When creating a project, you will be asked whether a Solution directory should be created. This option is the default behavior. If it is selected, the TwinCAT 3 project will be created in this directory.

The Solution file (*.sln) for the project contains a reference to all subprojects. If a TwinCAT 3 project is renamed, only the project file is renamed, not the folder. Thus, after renaming the project, the old folder name of the TwinCAT 3 XAE project will still exist on the hard disk, even though it is not located in the solution.
Solution options
- Select generic folder names that have no reference to a project.
- Disable the option Create directory for solution, then the solution file is stored next to the project file of the TwinCAT 3 XAE project.
- If the Solution file only contains one TwinCAT 3 project, then the TwinCAT 3 project can be copied manually to another folder without the *.sln file and the folder in which the TwinCAT 3 project is saved. Double-clicking the *.tsproj file also opens the TwinCAT 3 XAE Shell. You can rename the project accordingly in the XAE Shell. When saving the project, you will automatically be asked whether a new Solution file should be created.
- Copy the entire directory and adapt the folder names of the subprojects manually. Subsequently, these folder names must also be manually swapped in the *.sln file.