Repository navigation
Fix the template package and publish to NuGet only - #15
Merged
Merged
Conversation
Rename .template_config to .template.config, pack src and tests with their folders intact and only the files a new solution needs, so the CI Docker image and coverage output no longer end up in the package. Rename the author symbol to authorName because dotnet new reserves --author. Rename the integration test factory so the generated code compiles. CI now checks the package size and builds a solution from the packed template. Publishing stops pushing to Docker Hub and creates a GitHub release with generated notes for each NuGet version.
stphnwlsh
force-pushed
the
fix/template-packaging
branch
from
October 28, 2026 14:01
daf7471 to
de4240a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15 +/- ##
=======================================
Coverage 99.72% 99.72%
=======================================
Files 42 42
Lines 364 364
Branches 13 13
=======================================
Hits 363 363
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The NuGet template package was broken.
dotnet new installfound no template in it because the config folder was named.template_config, every file was flattened into a single folder, and CI packed its own Docker image (image.tar) and coverage report into it, which made it roughly 58 MB..template_configto.template.config.template.csprojnow packssrc,tests, the solution, build files,Dockerfile,docker-compose.yml,icon.pngand the dotfiles with their folders intact, and nothing else. The package is now about 130 KB.authortemplate parameter toauthorName, becausedotnet newreserves--author. Usage is now--authorName "Your Name".ModelContextProtocolApplication. The old name containedCleanModelContextProtocol, sodotnet newturned it into an invalid class name.Dockerfileships with the template..nupkgattached and notes generated from merged PRs..github/release.ymlputs Dependabot PRs in their own section.Once this is merged, the
DOCKER_LOGINandDOCKER_TOKENsecrets can be deleted.Type of change
Shared layers
Checklist
dotnet buildanddotnet testpass locally with no warnings.