Skip to content

fix: update Program.cs to use top-level statements for vs-2022 #10350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cmkaya
Copy link
Contributor

@cmkaya cmkaya commented Aug 15, 2024

This commit updates the structure of Program.cs for vs-2022 to use top-level statements, which is consistent with .NET 8.

Previously, the Program class was defined using the traditional way, which is not compatible with top-level statements.

This commit updates the structure of `Program.cs` for vs-2022 to use top-level statements, which is consistent with .NET 8.

Previously, the `Program` class was defined using the traditional way, which is not compatible with top-level statements.
Copy link
Contributor

@cmkaya : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 52e6ab4:

✅ Validation status: passed

File Status Preview URL Details
docs/get-started/csharp/tutorial-console.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@ShannonLeavitt
Copy link
Contributor

@anandmeg

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged tracking label for the PR review team label Aug 15, 2024
@anandmeg
Copy link
Collaborator

The tutorial is updated for top-level statements in VS 2022. When you create a new C# console project in VS 2022, the default code is Console.WriteLine("Hello, World!");
image

@anandmeg anandmeg closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants