Skip to content

Improve StartupObject discoverability, Visual Studio configuration, and entry point guidance (Fixes #33546) - #56656

Open
Manish-1kumar wants to merge 1 commit into
dotnet:mainfrom
Manish-1kumar:users/manish/issue-33546-startupobject-entry-point-discoverability
Open

Manish-1kumar wants to merge 1 commit into
dotnet:mainfrom
Manish-1kumar:users/manish/issue-33546-startupobject-entry-point-discoverability

Conversation

@Manish-1kumar

@Manish-1kumar Manish-1kumar commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Resolves #33546.

In \docs/csharp/language-reference/compiler-options/advanced.md\ and \docs/csharp/fundamentals/program-structure/top-level-statements.md, improves the discoverability and clarity of the \StartupObject\ option used to select an application entry point.

Changes Included

  • Added step-by-step instructions for configuring Startup object in Visual Studio (Project Properties > Application > General).
  • Clarified that \StartupObject\ specifies any type (\class, \struct, or
    ecord) containing an entry point \Main\ method.
  • Updated cross-link in \ op-level-statements.md\ to reference both the modern MSBuild property \StartupObject\ and -main.\
  • Fixed six-backticks typographical error on sample code block in \�dvanced.md.\
  • Validated with \markdownlint-cli2\ (0 issues).

Internal previews

File Preview link
_csharplang/proposals/csharp-14.0/async-main-update.md Learn preview
docs/csharp/fundamentals/program-structure/top-level-statements.md Learn preview
docs/csharp/language-reference/compiler-options/advanced.md Learn preview

Build report

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the changes clarifying C# entry point configuration.

No open issues 🎉

What changed in this PR

Improves discoverability and clarity of C# entry point configuration with StartupObject, addressing issue #33546.

Changes:

  • Expands the article description and clarifies that the entry point type can be a class, struct, or record.
  • Adds Visual Studio configuration steps and corrects a code fence.
  • Updates the top-level statements guidance to name both StartupObject and -main.
File Description
docs/​csharp/​language-reference/​compiler-options/​advanced.md Improves entry point guidance, adds Visual Studio steps, and fixes code fence formatting.
docs/​csharp/​fundamentals/​program-structure/​top-level-statements.md Names StartupObject alongside -main in the entry point restriction.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StartupObject is difficult to find

2 participants