How to solve the XXX.Program specified for the main method could not be found in C#

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)

Guess you like

Origin blog.csdn.net/qq_30725967/article/details/131920799
Recommended