Skip to content

Package BitNetSharp.App as a .NET tool and BitNetSharp.Core as a NuGet artifact in CI#10

Merged
sharpninja merged 6 commits intomainfrom
copilot/package-bitnetsharp-tools
Mar 17, 2026
Merged

Package BitNetSharp.App as a .NET tool and BitNetSharp.Core as a NuGet artifact in CI#10
sharpninja merged 6 commits intomainfrom
copilot/package-bitnetsharp-tools

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

This updates the pipeline to produce the two distributable artifacts the repo needs: a .NET tool package for BitNetSharp.App and a NuGet package for BitNetSharp.Core. It also adds the minimal project metadata required for those packs to succeed consistently in CI.

  • Project packaging metadata

    • Mark BitNetSharp.App as a packable .NET tool
    • Set the tool command name to bitnetsharp
    • Add minimal NuGet package identity/description metadata to BitNetSharp.Core
  • CI packaging flow

    • Extend the existing build workflow to run dotnet pack for:
      • src/BitNetSharp.Core/BitNetSharp.Core.csproj
      • src/BitNetSharp.App/BitNetSharp.App.csproj
    • Upload both generated .nupkg files as workflow artifacts
    • Use ${{ github.workspace }} for package paths so the workflow remains portable across runners
  • Artifact outputs

    • BitNetSharp.Core is emitted as a standard library NuGet package
    • BitNetSharp.App is emitted as an installable .NET tool package with the expected entrypoint
<PropertyGroup>
  <PackAsTool>true</PackAsTool>
  <ToolCommandName>bitnetsharp</ToolCommandName>
</PropertyGroup>

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: sharpninja <16146732+sharpninja@users.noreply.github.com>
Copilot AI changed the title [WIP] Package BitNetSharp.App as a dotnet tool and BitNetSharp.Core for nuget Package BitNetSharp.App as a .NET tool and BitNetSharp.Core as a NuGet artifact in CI Mar 17, 2026
Copilot AI requested a review from sharpninja March 17, 2026 22:37
@sharpninja sharpninja marked this pull request as ready for review March 17, 2026 22:39
Copilot AI review requested due to automatic review settings March 17, 2026 22:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds packaging metadata and CI steps so the repo can produce distributable artifacts (Core as a NuGet package and App as a .NET tool) as part of the standard GitHub Actions build.

Changes:

  • Add NuGet package metadata to BitNetSharp.Core (PackageId, Description).
  • Configure BitNetSharp.App to pack as a .NET tool with command bitnetsharp.
  • Extend CI to dotnet pack both projects and upload the resulting .nupkg artifacts.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/BitNetSharp.Core/BitNetSharp.Core.csproj Adds package metadata for Core NuGet packing.
src/BitNetSharp.App/BitNetSharp.App.csproj Enables packing the App project as a .NET tool and sets the tool command name.
.github/workflows/build.yml Packs Core + tool after tests and uploads .nupkg artifacts.

sharpninja and others added 3 commits March 17, 2026 18:03
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@sharpninja
Copy link
Copy Markdown
Owner

@copilot apply changes based on the comments in this thread

Co-authored-by: sharpninja <16146732+sharpninja@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 17, 2026

@copilot apply changes based on the comments in this thread

Addressed in 3f1ef10. Package versioning is now centralized in Directory.Build.props with a shared VersionPrefix, and the workflow pack steps append only a CI prerelease suffix so both the tool and NuGet package use a repo-defined version consistently.

Copilot AI requested a review from sharpninja March 17, 2026 23:08
@sharpninja sharpninja merged commit 2e27c35 into main Mar 17, 2026
1 check passed
@sharpninja sharpninja deleted the copilot/package-bitnetsharp-tools branch March 17, 2026 23:09
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.

3 participants