fix(aspire): publish TUnit.Aspire.Core package (#6246)#6247
Conversation
PR #6243 split TUnit.Aspire.Core out and made the TUnit.Aspire metapackage depend on it, but TUnit.Aspire.Core was never added to GetPackageProjectsModule's pack/push allowlist. So TUnit.Aspire 1.55.0 shipped a dependency on a package that was never published, breaking restore. Add TUnit_Aspire_Core to the list, mirroring the TUnit.AspNetCore / TUnit.AspNetCore.Core split which lists both.
Code ReviewStatus: LGTM — minimal, correct hotfix for a publish-time regression. OverviewThis PR fixes a NuGet restore failure caused by PR #6243 splitting Change AnalysisFile: The fix adds Sourcy.DotNet.Projects.TUnit_AspNetCore,
Sourcy.DotNet.Projects.TUnit_AspNetCore_Core,
Sourcy.DotNet.Projects.TUnit_Aspire,
Sourcy.DotNet.Projects.TUnit_Aspire_Core, // <-- addedThe ordering is logical and consistent with the existing convention. Correctness
ConcernsNone. This is a clean, necessary fix. Suggestion (for future splits)Given that this omission has now happened twice (once for // Hypothetical guard in the pipeline: assert that all
// ProjectReference targets of metapackages are in the pack listThis would catch the pattern at PR time rather than post-release. Not blocking for this fix, but worth a follow-up issue. Overall: Correct, well-scoped fix with a clear PR description explaining root cause and rationale. No issues found. |
Up to standards ✅🟢 Issues
|
Fixes #6246
Problem
TUnit.Aspire1.55.0 fails to restore:Root cause
PR #6243 split
TUnit.Aspire.Coreout ofTUnit.Aspireand made theTUnit.AspiremetapackageProjectReferenceit — so the publishedTUnit.Aspire.nupkgcarries a<dependency>onTUnit.Aspire.Core.But
GetPackageProjectsModule(the explicit allowlist of projects thepipeline packs and pushes to NuGet) was never updated to include
TUnit.Aspire.Core. The metapackage therefore shipped a dependency on apackage that doesn't exist on NuGet → restore 404.
The earlier
TUnit.AspNetCore/TUnit.AspNetCore.Coresplit (which thismirrored) correctly lists both projects; Aspire only listed the
metapackage.
Fix
Add
Sourcy.DotNet.Projects.TUnit_Aspire_Coreto the pack/push list.Verified
TUnit.Pipelinebuilds (the Sourcy-generated symbol resolves).