Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Change Startup Object
Change Startup Object

Change Startup Object

Vanderlei Adriano Garcia Morais

|
27 installs
| (0) | Free
Quickly change Startup Object of a project to the desired class.
Download

Change Startup Object

Quickly change the Startup Object (entry point) of a project to the desired class.

Preview

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.

How It Works

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.

Preview

Shortcut

Use Alt+F5 to set the active file OR the selected file in Solution Explorer as the Startup Object.

Limitations

  • 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 Main method.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft