Skip to content

fix(packaging): align dependencies by target framework - #39

Open
Reuben Bond (ReubenBond) wants to merge 3 commits into
microsoft:mainfrom
ReubenBond:rb-fix-system-text-json-tfms
Open

fix(packaging): align dependencies by target framework#39
Reuben Bond (ReubenBond) wants to merge 3 commits into
microsoft:mainfrom
ReubenBond:rb-fix-system-text-json-tfms

Conversation

@ReubenBond

@ReubenBond Reuben Bond (ReubenBond) commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • multi-target the Accordant runtime libraries for netstandard2.0, net8.0, and net10.0
  • use .NET 8 package versions by default and Orleans-style PackageVersion Update overrides for net10.0
  • replace handwritten nuspec files with SDK-native dotnet pack projects for both Microsoft.Accordant and Microsoft.Accordant.Cli
  • run the existing operations test suite on both net8.0 and net10.0

The native package uses the matching framework assets for .NET 8 and .NET 10. SDK package pruning removes framework-provided dependencies such as System.Text.Json from those dependency groups, while the retained netstandard2.0 asset uses the .NET 8 package train.

Validation

  • dotnet build Accordant.slnx --no-restore --configuration Release
  • dotnet test Accordant.slnx --no-build --no-restore --configuration Release (405 passed, 1 skipped)
  • Scripts/create-nuget-packages.ps1
  • installed and ran the generated CLI tool package
  • built isolated net8.0 and net10.0 consumers with MSB3277 promoted to an error

Resolves #38

Multi-target the Accordant runtime libraries for netstandard2.0, net8.0, and net10.0, and package matching dependency trains for each native target.

Add isolated package-consumer validation for net8 and net10 which fails on MSB3277 and verifies the selected assets and dependency groups.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Generate the net8 and net10 package consumers at runtime instead of committing a multi-project fixture graph, while retaining isolated restore, MSB3277 enforcement, and TFM asset checks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace handwritten nuspec files with SDK pack projects, use target-framework package version overrides, and cover net8/net10 through the existing operations tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

System.Text.Json 10 dependency causes conflicts for .NET 8 consumers

1 participant