Skip to content

[Repo Assist] Remove unused NUnit.Console and Microsoft.NETCore.App from template#446

Merged
dsyme merged 2 commits intomasterfrom
repo-assist/fix-template-nunit-console-warning-31ae471dd46f80b3
Feb 26, 2026
Merged

[Repo Assist] Remove unused NUnit.Console and Microsoft.NETCore.App from template#446
dsyme merged 2 commits intomasterfrom
repo-assist/fix-template-nunit-console-warning-31ae471dd46f80b3

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Addresses the unlisted-package warning reported in #387.

Root Cause

paket.dependencies in the template's Test group included two packages that are not referenced by any project:

  • NUnit.Console — not in any paket.references file; its only effect is to bring in NUnit.Extension.TeamCityEventListener as a transitive dependency. That package is marked unlisted on NuGet.org, causing paket to emit a warning on every paket install or paket update.
  • Microsoft.NETCore.App — also unreferenced; targets an old runtime (2.2.8) and has been deprecated.

Fix

Remove both packages from templates/content/basic/paket.dependencies and regenerate templates/content/basic/paket.lock with dotnet paket install (paket 9.0.2). This removes 11 lock-file entries:

  • Microsoft.NETCore.App, Microsoft.NETCore.DotNetAppHost, Microsoft.NETCore.DotNetHostPolicy, Microsoft.NETCore.DotNetHostResolver
  • NUnit.Console, NUnit.ConsoleRunner, NUnit.Extension.NUnitProjectLoader, NUnit.Extension.NUnitV2Driver, NUnit.Extension.NUnitV2ResultWriter, NUnit.Extension.TeamCityEventListener, NUnit.Extension.VSProjectLoader

The template tests still use Microsoft.NET.Test.Sdk, NUnit, and NUnit3TestAdapter — everything needed to run dotnet test.

Trade-offs

None. The removed packages were unused dead weight in the template.

Test Status

The paket lock file was regenerated cleanly with dotnet paket install. The template file set (paket.dependencies + paket.lock + paket.references) is internally consistent. Full integration testing (installing the template via dotnet new) was not run, but the change is minimal and mechanical.

Generated by Repo Assist

To install this workflow, run gh aw add githubnext/agentics/workflows/repo-assist.md@f2c5cf1e4af58e09a93ba0703c6bf084711b265f. View source at https://github.com/githubnext/agentics/tree/f2c5cf1e4af58e09a93ba0703c6bf084711b265f/workflows/repo-assist.md.

NUnit.Console is not used by any project in the template (it is not
referenced in any paket.references file). Its only effect is to
introduce NUnit.Extension.TeamCityEventListener as a transitive
dependency, which is an unlisted NuGet package and triggers a paket
warning for new users.

Microsoft.NETCore.App is similarly unreferenced and is a deprecated
package targeting an old runtime (2.2.8).

This removes both packages from paket.dependencies and regenerates
paket.lock with paket 9.0.2, removing 11 no-longer-needed entries.

Addresses the unlisted-package warning reported in #387.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dsyme dsyme marked this pull request as ready for review February 26, 2026 08:25
@dsyme dsyme merged commit 2c88df8 into master Feb 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant