Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 7, 2025

The release pipeline for version 9.2.0 was failing because the project lacked proper NuGet package versioning configuration. The pipeline defines version variables (Major: 9, Minor: 2, Revision: 0) but these weren't being used during package generation, causing packages to be created with the default version 1.0.0 instead of 9.2.0.

Root Cause

The project file was missing essential NuGet package metadata properties, and an obsolete package.nuspec file contained outdated version information. Additionally, the Azure pipeline wasn't passing version parameters to the dotnet pack command.

Changes Made

Updated Xunit.Microsoft.DependencyInjection.csproj:

  • Added comprehensive NuGet package metadata including PackageId, Title, Authors, Company, Description, Copyright, PackageTags, PackageProjectUrl, PackageLicenseExpression, and PackageRequireLicenseAcceptance
  • Removed dependency on external .nuspec file by moving all metadata into the project file

Removed obsolete package.nuspec:

  • Eliminated conflicting version source that was causing versioning issues

Updated azure-pipelines.yml:

  • Added /p:PackageVersion=$(Major).$(Minor).$(Revision) parameter to the pack command to properly use pipeline version variables

Verification

The fix has been thoroughly tested:

  • Local build and pack operations succeed with correct version 9.2.0
  • All 43 example tests continue to pass
  • Generated NuGet package contains proper version and complete metadata
  • Full pipeline simulation (restore → build → pack → test) executes successfully

The release pipeline should now correctly generate NuGet packages with version 9.2.0 and all required metadata.

Fixes #315.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Arash-Sabet <26050123+Arash-Sabet@users.noreply.github.com>
Copilot AI changed the title [WIP] The release pipeline for ver 9.2.0 is failing. Fix NuGet package versioning for release pipeline v9.2.0 Sep 8, 2025
Copilot finished work on behalf of Arash-Sabet September 8, 2025 00:13
@Arash-Sabet Arash-Sabet marked this pull request as ready for review September 8, 2025 00:22
@Arash-Sabet Arash-Sabet merged commit 8fb2c01 into main Sep 8, 2025
1 check passed
@Arash-Sabet Arash-Sabet deleted the copilot/fix-315 branch September 8, 2025 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci/cd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The release pipeline for ver 9.2.0 is failing.

2 participants