Quickly change the Startup Object (entry point) of a project to the desired class.
This command is similar to "Set as Startup Project" but is designed for setting a class as an entry point at the project level, allowing multiple Main methods across different .cs files.
When the command is executed, the selected class is set in the respective project as the <StartupObject>. This is a compiler option that specifies the entry point of the application.
Use Alt+F5 to set the active file OR the selected file in Solution Explorer as the Startup Object.
- When you don't want to create multiple projects just to have different entry points, such as small POCs and benchmarks using Console Applications.
- A quick solution for CS0017 that eliminates the need to compile with the
/mainoption.
- Doesn't work with top-level statements, since there is a limitation of only one top-level file per application.
- The selected class must have a
Mainmethod.

