Build - "The target ... does not exist in the project"

In particular when transferring a TwinCAT solution from one machine to another, Visual Studio may display error messages to the effect that not all targets (such as Build, Rebuild, Clean) exist in the project.

Build - "The target ... does not exist in the project" 1:

Check the configuration of the "platform toolset" of the C++ project. It may need to be reconfigured if solutions migrate from one Visual Studio version to another:
Build - "The target ... does not exist in the project" 2: