Skip to content

Modernize project for .NET 8/10 and Tomlyn v2 #6

@wxxb789

Description

@wxxb789

Hi there! Thank you for this great library — it's been really useful for integrating TOML with Microsoft.Extensions.Configuration.

I noticed the project currently targets netstandard2.0 and net461 with Tomlyn v0.14.3, and thought it might benefit from some updates to stay compatible with the latest .NET ecosystem:

Suggested Changes

  • Solution format: Migrate from .sln to .slnx (the new XML-based format introduced in .NET 9)
  • Target frameworks: Replace net461 with net8.0 and net10.0 while keeping netstandard2.0 for broad compatibility
  • Tomlyn: Upgrade from v0.14.3 to v2.3.0 (the Toml static class has been replaced by TomlSerializer in v1.0+)
  • Test framework: Migrate from xUnit v2 to xUnit v3
  • Dependencies: Update Microsoft.Extensions.Configuration packages to latest stable (10.0.6)
  • API alignment: Add missing stream null validation in AddTomlStream() to match the official JSON provider pattern

I have a draft PR ready if you're open to it. Happy to adjust anything based on your preferences!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions