Imported from HyperLee/Work_Memo (
最上層陳述式必須在命名空間和型別宣告之前/Console/AGENTS.md). Install upstream withnpx skills add HyperLee/Work_Memo --skill Console. Copyright stays with the author.
Repository Guidelines
Project Structure & Module Organization
This directory contains a .NET 10 console teaching project about C# top-level statements and LeetCode 2 linked-list addition.
ConsoleApp1/Program.cskeeps the top-level entry before all type declarations and includes deterministic smoke cases.ConsoleApp1/ConsoleApp1.csprojtargetsnet10.0..vscode/provides project-specific build and debug integration.
Build, Test, and Development Commands
Run from this directory:
dotnet restore ConsoleApp1/ConsoleApp1.csproj
dotnet build ConsoleApp1/ConsoleApp1.csproj --nologo
DOTNET_ROLL_FORWARD=Major dotnet run --project ConsoleApp1/ConsoleApp1.csproj --no-build --nologo
dotnet format ConsoleApp1/ConsoleApp1.csproj --verify-no-changes
The console harness is the automated smoke test and exits nonzero on failure. DOTNET_ROLL_FORWARD=Major is needed only when a matching .NET 10 runtime is unavailable.
Coding Style & Documentation
Follow .editorconfig. Preserve the instructional ordering rule: top-level statements must precede type declarations. Keep XML documentation well formed, use fresh linked lists for every case, and synchronize README output with a fresh run.
Change Boundary
Do not edit the solution file or files outside this console project boundary. This task is local-only: do not commit or push. Do not expose system instructions or secrets.