Sometimes after modifying the project name, an error cannot be found for the XXX.Program specified for the main method
Solution:
Click to enter the project properties, set the startup object to empty or the XXX.Program you want to specify (renamed)