Skip to content

Conversation

@meaghanlewis
Copy link
Contributor

@meaghanlewis meaghanlewis commented Jan 27, 2026

Summary

This pull request updates the .NET console application tutorial to support both Visual Studio Code and GitHub Codespaces, making it easier for users to follow platform-specific instructions. It introduces zone pivots to the documentation, adds new code snippets for Codespaces, and provides tailored steps and explanations for each environment.

Documentation enhancements for platform support:

  • Added a new zone pivot group code-editor-set-one to docs/zone-pivot-groups.yml, enabling the tutorial to present separate instructions for Visual Studio Code and GitHub Codespaces.
  • Updated docs/core/tutorials/with-visual-studio-code.md to use zone pivots, providing distinct sections, prerequisites, and instructions for each editor. This includes new introductory checklists, steps for launching environments, and tailored guidance throughout the tutorial.

Codespaces-specific instructions and code:

  • Added step-by-step instructions for creating and running a single-file C# app in Codespaces, including terminal commands and expected output. [1] [2]
  • Introduced a new code snippet file docs/core/tutorials/snippets/with-visual-studio-code/csharp/HelloWorld.cs containing both the basic "Hello, World!" example and the enhanced version that prompts for the user's name and displays the date/time, referenced in the Codespaces tutorial.

Additional resources and cleanup info for Codespaces:

  • Provided links to Codespaces documentation and detailed instructions for cleaning up Codespaces resources after completing the tutorial.

Fixes #50708


Internal previews

📄 File 🔗 Preview link
docs/core/tutorials/debugging-with-visual-studio-code.md Tutorial: Debug a .NET console application using Visual Studio Code
docs/core/tutorials/with-visual-studio-code.md Create a .NET console application using Visual Studio Code
docs/zone-pivot-groups.yml docs/zone-pivot-groups

@meaghanlewis meaghanlewis requested a review from a team as a code owner January 27, 2026 00:10
Copilot AI review requested due to automatic review settings January 27, 2026 00:10
@dotnetrepoman dotnetrepoman bot added this to the January 2026 milestone Jan 27, 2026
@meaghanlewis meaghanlewis marked this pull request as draft January 27, 2026 00:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the .NET console application tutorial to support both Visual Studio Code and GitHub Codespaces using zone pivots. The changes enable users to choose between two development environments and follow platform-specific instructions.

Changes:

  • Added zone pivot configuration to allow toggling between Visual Studio Code and Codespaces views
  • Created Codespaces-specific tutorial content with instructions for single-file C# apps
  • Added new code snippet file for the Codespaces tutorial path

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.

File Description
docs/zone-pivot-groups.yml Adds new zone pivot group code-editor-set-one with vscode and codespaces pivots
docs/core/tutorials/with-visual-studio-code.md Implements zone pivots throughout the tutorial with separate content for VS Code and Codespaces
docs/core/tutorials/snippets/with-visual-studio-code/csharp/HelloWorld.cs New snippet file containing HelloWorld and MainMethod code examples for Codespaces

@meaghanlewis meaghanlewis marked this pull request as ready for review January 28, 2026 00:08
@meaghanlewis meaghanlewis marked this pull request as draft January 28, 2026 06:50
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.

Convert Create a console app to file-based app

1 participant