Skip to content

Warning NETSDK1215: Targeting .NET Standard prior to 2.0 is no longer recommended #137

Open

Description

@Jericho

When building the solution in Visual Studio I get the following warning:

warning NETSDK1215: Targeting .NET Standard prior to 2.0 is no longer recommended. See https://aka.ms/dotnet/dotnet-standard-guidance for more details.

This is cause by this line in the csproj file:

<TargetFrameworks>netstandard1.3;netstandard2.0;net452;net5.0</TargetFrameworks>

As you can see, the solution is targeting netstandard1.3 in addition to netstandard2.0. which is redundant.

I propose dropping netstandard1.3 and keeping netstandard2.0.

Activity

  1. self-assigned this
    on Nov 21, 2026
  2. Pathoschild commented on Nov 21, 2026

    @Pathoschild
    Owner

    Hi! That warning makes sense for the average new project, but having an API that works across .NET versions is one of this library's main goals (see why does this exist?). As an example of projects targeting old versions, Stardew Valley is still in active development but multi-targets .NET Framework 4.5.2 indefinitely to avoid breaking the game for existing users.

    Dropping .NET Standard 1.3 would break projects which use .NET Core <2.0, Mono <5.4, Xamarin.Android <8.0, etc. Dropping it also wouldn't have any real effect on modern projects using the client, since those use the build for a newer target framework already (e.g. netstandard2.0). So I'm hesitant to drop support for older frameworks without a clear benefit worth breaking that goal.

    I suggest that we disable the new warning instead of dropping support, given that it's just an advisory to encourage updating old libraries rather than an actual problem when multi-targeting.

  3. Jericho commented on Nov 21, 2026

    @Jericho
    ContributorAuthor

    Supporting as many versions of .NET as possible is admirable but you have to draw the line at some point. You don't have to support every single version of .NET that has ever been released. I agree that it makes sense to support as many versions as possible, but not necessarily ALL of them.

    .NET Core 1.0 was released a decade ago, stopped being supported in 2019, is probably riddled with security issues and it's not being maintained/updated by Microsoft. I frankly see no "reasonable" justification for supporting it, let alone for using it.

    What are you going to do if a developer raises an issue because they are experiencing a problem using your library in a .NET Core 1.0 project. Are you prepared and willing to help them?

    Dropping support for old frameworks such as .NET Core <2.0, Mono <5.4, Xamarin.Android <8.0, etc. is exactly the point. I highly doubt anybody would fault you for not supporting these decade old frameworks and I don't think it's a support burden that you need. I would rather see you invest your time and limited resources towards taking advantage of features in more modern versions of .NET than continue supporting frameworks that are so old I doubt anybody is still using them.

  4. Pathoschild commented on Nov 21, 2026

    @Pathoschild
    Owner

    Yep, it's a trade-off between broad compatibility vs the difficulty of supporting more frameworks. That's why the client doesn't support .NET Standard <1.3 for example. So I'd be fine dropping .NET Standard 1.3–1.9 if there was a concrete benefit to doing so (e.g. if needed for the API redesign discussed in #133); I just don't want to drop them for the sake of dropping them, since supporting older versions is a specific goal of the project.

    And yep, I'd help users having issues with older framework versions. If the oldest framework targets did become a significant support burden, that could potentially be a reason to consider dropping them; but that's not the case currently.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions