Convert get-started tutorial to file-based app#51026
Conversation
Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This pull request updates the .NET getting started tutorial to use a file-based app approach instead of the traditional project scaffolding method. The changes align with modern .NET tutorial patterns and follow the structure of the C# tour hello-world template.
Changes:
- Added Prerequisites, Open Codespaces, and Cleanup resources sections following the C# tour template structure
- Converted tutorial from
dotnet new consolescaffolding to creating a singlehello-world.csfile - Updated execution command to
dotnet run hello-world.csfor direct file-based app execution - Created new code snippet files with region markers for documentation reference
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/core/get-started.md | Restructured tutorial to use file-based app approach with Prerequisites, Codespaces setup, and resource cleanup sections |
| docs/core/snippets/get-started/hello-world.cs | Added simple Hello World code snippet with region markers for documentation |
| docs/core/snippets/get-started/get-started.csproj | Added project file targeting .NET 10 with modern C# features enabled |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
adegeo
left a comment
There was a problem hiding this comment.
I'm not sure what we're trying to accomplish by promoting codespaces. I would think beginners have two paths:
- I want to install the dev environment on my computer and make an app.
- I want to go and quickly explore the C# language so I'll use a codespace.
What's our goal for new users? Get .NET local and create an app?
What about leading with installing things but telling them they can use codespaces if they don't want to install anything.
|
@adegeo thanks for your feedback. My plan for beginner .NET paths is to lead with using Codespaces first, and then an option to install all the things second. This is in line with the changes @BillWagner recently made with the C# getting started tutorials and promotes file-based apps as well.
|
adegeo
left a comment
There was a problem hiding this comment.
Approved to unblock. Let's put the code in a csharp folder :)
Updates the .NET getting started tutorial to use file-based app approach instead of
dotnet new console, aligning with modern .NET tutorial patterns and the C# tour structure.Changes
dotnet new console -o sample1) to creating singlehello-world.csfiledotnet run hello-world.csfor direct file execution/docs/core/snippets/get-started/csharp/hello-world.cswith region markersExample
Before:
After:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
learn.microsoft.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Internal previews