Repository navigation
Improve StartupObject discoverability, Visual Studio configuration, and entry point guidance (Fixes #33546) - #56656
Open
Manish-1kumar wants to merge 1 commit into
Conversation
…nd entry point guidance Fixes dotnet#33546
Contributor
There was a problem hiding this comment.
🟢 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
StartupObjectand-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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ecord) containing an entry point \Main\ method.
Internal previews
Build report