Skip to content

Any plans to upgrade to net8/net9? #280

Open

Description

@Grisgram

I would prefer to load the package from the original author and not from any fork with 120 downloads.

Activity

  1. AndreasClassen commented on Oct 22, 2025

    @AndreasClassen

    Same question here

  2. Hexman768 commented on Oct 23, 2025

    @Hexman768
    Collaborator

    There are currently no plans to uplift the project to .NET 8 or above, this is because of backwards compatibility issues that could be created. There are many older projects that could be affected by making a breaking change such as uplifting the project to .NET 8+.

    However, I do have plans to create separate forks, or links to other versions of the project that do support newer .NET versions.

  3. AndreasClassen commented on Oct 23, 2025

    @AndreasClassen

    Just to make sure: there is no reason to abandon the .NET FW version of the library. You can simply build it in such a way, that there is a .NET FW version and a .NET 8+ version. You can package them inside the same NuGet and Visual Studio will select the correct dependency. This is way better than forking and having two distinct NuGet packages.

  4. Hexman768 commented on Mar 2, 2026

    @Hexman768
    Collaborator

    @AndreasClassen Do you have any examples of this? I would love to see if I could pull this off for this project!

  5. EPZ1904 commented on Aug 27, 2026

    @EPZ1904

    @Hexman768
    You update the project file to sdk style project format. (The Visual Studio Upgrade Assistant can help you with that)
    Then in the project file you change <TargetFramework> to <TargetFrameworks> (notice the s that is added).
    Now in there you can enter as many framework you want to compile against, for example:
    <TargetFrameworks>net40;net472;net8.0-windows;net10-windows</TargetFrameworks>
    Then if you want to configure things per framework, you can add conditions to project file items, for example:
    <ItemGroup Condition="'$(TargetFramework)' == 'net8.0-windows'">
    And inside your cs code you can customize per target framework if you want like this, using the autogenerated compiler constants:
    #if NET8_0_OR_GREATER
    #endif

    For the Nuget part, if you generate the nuget via Visual Studio, then Visual Studio will automatically pack all target frameworks into one Nuget.
    If you do the nuget yourself using nuget.exe, then you just have to add one folder inside the lib for each target framework you want to publish in that package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions