Skip to content

Add minimal MSBuild-based C# Hello World sample with CI build workflow - #1

Merged
mederly merged 3 commits into
mainfrom
copilot/add-hello-world-console-app
May 18, 2026
Merged

mederly merged 3 commits into
mainfrom
copilot/add-hello-world-console-app

Conversation

Copilot AI commented May 18, 2026 •

Copy link
Copy Markdown

Adds a minimal C# console sample that can be built via MSBuild and wires CI to build it on every PR/push.
This introduces a small, explicit project layout for a baseline MSBuild-backed .NET repo.

  • Project scaffold

    • Added HelloWorld.sln (classic .sln format) and src/HelloWorld/HelloWorld.csproj
    • Added Program.cs with a minimal Hello World entrypoint
    • Target framework set to net8.0 for stable CI/runtime compatibility
  • GitHub Actions (MSBuild)

    • Added .github/workflows/build.yml
    • Workflow runs on push to main and pull_request
    • Uses actions/setup-dotnet + microsoft/setup-msbuild
    • Builds solution via MSBuild (Restore,Build) in Release
  • Repo hygiene / docs

    • Added .gitignore entries for bin/ and obj/
    • Updated README.md with MSBuild build command and local run command
- name: Restore and build solution with MSBuild
  run: msbuild HelloWorld.sln /t:Restore,Build /p:Configuration=Release
Original prompt

Create a sample C# "hello world" console application to be build using MSBuild, with a GitHub Action to actually build it.

Copilot AI changed the title [WIP] Add sample C# hello world console application Add minimal MSBuild-based C# Hello World sample with CI build workflow May 18, 2026
Copilot AI requested a review from mederly May 18, 2026 14:34
@mederly
mederly marked this pull request as ready for review May 18, 2026 14:35
@mederly
mederly merged commit 2f2efc5 into main May 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants