Cleaning projects

Cleaning a project deletes the generated code that is already existing for a →target system. All build problems and built states will be discarded. The project will be rebuilt from scratch meaning that the code for the target system will be created from scratch, based on the →resources in the →project.
If the project has been cleaned but code has not been created anew, you will not be able to load the application onto the target system. See troubleshooting article "Cannot build or load application".

  • If there are errors within the resources (e.g. within the ST-code), these errors are not removed in the resources. That means, such errors will be displayed again after a project has been cleaned.

  • Library elements that have been deployed with the setting DEPLOY:=SOURCE (or without the keyword DEPLOY) to a →library are also validated when the project is cleaned. If errors/warnings are reported regarding the library elements of an installed library, the best practice is to contact the library manufacturer to clarify those errors/warnings.

How to clean the project:

  1. In menu Project, select Clean...

  2. In the dialog, select the provided project.

  3. Click OK.