Skip to content

previous-nuget crashes in 0.18: no constructor for PackageDependencyGroup #62

Closed

Description

@Mpdreamz

Since 0.18.0, the previous-nuget provider fails with:

JsonSerializationException: Unable to find a constructor to use for type NuGet.Packaging.PackageDependencyGroup

This is most likely trimming in the native AOT build: Newtonsoft.Json deserialises NuGet's types by reflection, and their constructors are trimmed away. 0.17.0 works. Repositories using the tool are pinning 0.17.0 until this is fixed.

Found while bumping vstest-pretty-logger's tools.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions