Reverting the last change (large size change) will be my last resort. Switching to Class Library eliminated the build error but introduced a debug error: "The 'RunCommand' property is not defined." The program does not start. What should I try next? Thanks!!!
CS5001 Program does not contain a static 'Main' method suitable for an entry point
Noorann Tech
0
Reputation points
I developed ASP.NET website for five years. Recently I upgraded to VS2022 recent release, then R-Click on the project name in Solution Explorer I ran "Analyze and Code Cleanup". Now, I get a build error "CS5001: Program does not contain a static 'Main' method suitable for an entry point" Also, I do not see an option to set the project StartPage? How can fix this?