Skip to content

Add .NET 8 class library scaffolding and GitHub Packages publish workflow#2

Draft
kylemwhite with Copilot wants to merge 2 commits into
mainfrom
copilot/create-dotnet-class-library-scaffolding-again
Draft

Add .NET 8 class library scaffolding and GitHub Packages publish workflow#2
kylemwhite with Copilot wants to merge 2 commits into
mainfrom
copilot/create-dotnet-class-library-scaffolding-again

Conversation

Copilot AI commented Mar 14, 2026

Copy link
Copy Markdown

Repo was initialized with no project structure or CI. Adds the minimal scaffolding to build, pack, and publish mdz-core as a private NuGet package to GitHub Packages.

Changes

src/mdz-core/mdz-core.csproj

  • SDK-style, net8.0, nullable/implicit-usings enabled
  • PackageId=mdz-core, GeneratePackageOnBuild=false
  • Drop existing .cs source files directly into src/mdz-core/

.github/workflows/publish.yml

  • Triggers on push to main and v*.*.* tags
  • Version derived from tag (v1.2.31.2.3); falls back to 1.0.0 on branch push
  • Restore → Build → Test (skipped if no tests/ csproj found) → Pack → Publish
  • Authenticates to https://nuget.pkg.github.com/{owner}/index.json via built-in GITHUB_TOKEN — no extra secrets needed

.gitignore

  • Adds out/ to exclude dotnet pack artifacts
# Workflow trigger summary
on:
  push:
    branches: [main]
    tags: ["v*.*.*"]

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…flow

Co-authored-by: kylemwhite <4984480+kylemwhite@users.noreply.github.com>
Copilot AI changed the title [WIP] Add scaffolding for .NET class library repository Add .NET 8 class library scaffolding and GitHub Packages publish workflow Mar 14, 2026
Copilot AI requested a review from kylemwhite March 14, 2026 18:10
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