cad-hello-console

Guides learners through building a first C# console app with .NET 8.

2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill cad-hello-console-jay-steenbergen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cad-hello-console
Source: https://github.com/jay-steenbergen/MSSAMentorAgent/tree/main/.github/skills/tracks/cloud-app-dev/cad-hello-console
Command: npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill cad-hello-console-jay-steenbergen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? New developers often struggle to set up a working C# environment and understand the basic dev loop of editing, building, and running code. This Skill walks a learner through installing the .NET 8 SDK, creating a console project, and writing a personalized greeting program, establishing the foundational vocabulary (variables, methods, classes) needed for all later projects. ## Core Features & Use Cases - Guided .NET 8 setup: Step-by-step PowerShell instructions to install the SDK via winget and verify with dotnet --version, including PATH gotchas. - Four-phase project workflow: Install, scaffold with dotnet new console, add user input with Console.ReadLine and string interpolation, then refactor logic into a static BuildGreeting method. - Teaching guardrails: Scope limits, common gotchas, deliberate type-error exercises, and after-action prompts to reinforce concepts. - Use Case: An MSSA learner with no coding experience opens PowerShell, follows the phases, and finishes able to create, build, run, and explain a C# console app without notes. ## Quick Start Ask the mentor to start the cad-hello-console project and walk you through writing your first C# console greeting app.

Frequently Asked Questions about cad-hello-console

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write my first C# console app with .NET?

Install the .NET 8 SDK, run dotnet new console in a new folder, then dotnet run to see Hello, World. Modify Program.cs to read input with Console.ReadLine and print a greeting using string interpolation.

How to install the .NET 8 SDK on Windows?

Run winget install Microsoft.DotNet.SDK.8 in PowerShell, then open a fresh terminal so PATH updates apply. Verify with dotnet --version, which should print 8.0.x. Older Windows 10 without winget can use the official installer from dotnet.microsoft.com.

Why does dotnet --version say command not found after installing?

Existing terminals cache the old PATH variable and do not see newly installed tools. Close the PowerShell window, open a fresh one, and run dotnet --version again.

Can I use Visual Studio instead of VS Code for C# learning?

Yes, but the CAD track uses VS Code as its baseline for consistency with other Microsoft training material. Visual Studio is heavier and slower to start, though you can switch later if preferred.

What C# concepts does a first console project cover?

It covers variables, types, methods, parameters, return values, string interpolation, and top-level statements. It deliberately excludes classes with constructors, async, NuGet configuration, and testing, which come in later projects.