Skip to content

Add managed package servicing disable infrastructure to Core-Setup release/3.1 #37661

Closed

Description

@dagood

Core-Setup release/3.1 contains some managed libraries. When they don't have a change, they shouldn't build as part of the servicing release. (Downstream repos should continue using the old version.)

Alternative A: manually disable

We can remove the managed projects from the build entirely when not wanted.

In 2.1, this removal is a little buried in this file:
https://github.com/dotnet/core-setup/blob/ba3b934aa42697c3faaebfaa1622cdea2f10ff75/src/pkg/packaging/dir.proj#L169-L177

In 3.1, it's over here:
https://github.com/dotnet/core-setup/blob/d59676539b88da3576c20e2150b09323f280c437/Subsets.props#L64-L73

Alternative B: automatic disable

The enable/disable scenario is similar to the targeting pack shipping requirements. It might be reasonable to apply the same infra we have for targeting packs to the managed libraries.

The servicing infra for targeting packs is this:
https://github.com/dotnet/core-setup/blob/d59676539b88da3576c20e2150b09323f280c437/eng/Versions.props#L27-L44

If we ported over this disable logic to the managed projects, we could use the same logic:
https://github.com/dotnet/core-setup/blob/d59676539b88da3576c20e2150b09323f280c437/src/pkg/packaging-tools/packaging-tools.targets#L118-L152

This infra doesn't require you to remember to manually add/remove projects from a list. You just tweak the version once when you make the change to the library. Then, it builds in the current release, and automatically gets disabled once the patch version is incremented.

Activity

  1. added
    untriaged
    on Jun 9, 2020
  2. removed
    untriaged
    on Jun 15, 2020
  3. added this to the 5.0.0 milestone on Jul 8, 2020
  4. NikolaMilosavljevic commented on Jul 28, 2020

    @NikolaMilosavljevic
    Contributor

    Fixed.

  5. reopened this on Aug 25, 2020
  6. Anipik commented on Aug 25, 2020

    @Anipik
    Contributor

    Reopening this issue as we need a similar fix for 5.0

  7. ViktorHofer commented on Sep 1, 2020

    @ViktorHofer
    Member

    @Anipik believes we don't require this change in 5.0.

  8. ghost locked as resolved and limited conversation to collaborators on Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions