Skip to content

Threading.Tasks.DataFlow and ComponentModel.Annotations are not building NetCoreAppCurrent #48662

Closed

Description

@eerhardt

These libraries are included in the shared framework, but we aren't building them for $(NetCoreAppCurrent).

<TargetFrameworks>netstandard2.0;netstandard1.0;netstandard1.1;net461</TargetFrameworks>

This causes the following problems:

  1. These libraries have <Nullable>enable</Nullable> in them, but they are building against netstandard APIs, which don't have nullablility annotations.
  2. When someone wants to use a new API (or new attributes, like DynamicDependency and UnconditionalSuppressMessage), they are not available.

We should add a $(NetCoreAppCurrent) target for these libraries, and ship that in the shared framework / runtimepack. I analyzed a recent shared framework, and these were the only 2 libraries (outside of System.Runtime.CompilerServices.Unsafe) that didn't target net6.0.

cc @LakshanF @joperezr @safern @ViktorHofer @ericstj

Activity

  1. ghost added
    untriaged
    on Feb 23, 2021
  2. removed
    untriaged
    on Feb 23, 2021
  3. added this to the 6.0.0 milestone on Feb 23, 2021
  4. added
    good first issue
    on Feb 23, 2021
  5. eerhardt commented on Feb 23, 2021

    @eerhardt
    MemberAuthor

    Just an FYI: I quickly tried doing this locally and System.ComponentModel.Annoations appears to be OK w.r.t. nullable annoations.

    However, System.Threading.Tasks.DataFlow has a ~60 nullable annoation errors now that it compiles for NetCoreAppCurrent.

  6. added a commit that references this issue on Feb 23, 2021
    e803a1b
  7. added a commit that references this issue on Feb 26, 2021
    2e2d7bd
  8. ghost locked as resolved and limited conversation to collaborators on Mar 28, 2021
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

    area-Infrastructure-librariesgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions