Skip to content

Resolve Microsoft.AspNetCore.App.Ref prebuilt for 6.0 #2506

Closed

Description

@MichaelSimons

The Microsoft.AspNetCore.App.Ref is not getting produced by aspnetcore and is not in SBRP therefore it appears are a prebuilt coming from the installer repo. The logic to build this in aspnetcore is conditioned out for source-build -https://github.com/dotnet/aspnetcore/blob/release/6.0/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj#L107. In 5.0 this package came from SBRP. Producing it in SBRP won't eliminate the prebuilt without work as the version is non-stable.

Ideally aspnetcore would produce this package for the 6.0.0 release then it should come from SBRP for servicing.

Activity

  1. ghost added
    area-prebuilts
    on Oct 13, 2021
  2. eerhardt commented on Oct 14, 2021

    @eerhardt
    Member

    cc @captainsafia @pranavkm @dougbu - any thoughts here?

  3. dougbu commented on Oct 14, 2021

    @dougbu

    Agree that we don't produce Microsoft.AspNetCore.App.Ref and the targeting packs after RTM except in unusual circumstances because we don't change the API surface after X.Y.0. We also previously didn't need Microsoft.AspNetCore.App.Ref for source-build because it's separate from the shared framework (and the shared framework was all we needed in source-build).

    What exactly is the proposal here❔

  4. dougbu commented on Oct 14, 2021

    @dougbu

    Also, what's "SBRP"❔

  5. eerhardt commented on Oct 14, 2021

    @eerhardt
    Member

    @dougbu - I believe the issue here is that aspnetcore isn't producing the 6.0 asp.net ref pack at all in source-build right now. For building 6.0.0, we need to build the 6.0.0 ref pack.

    Also, what's "SBRP"❔

    It's short for "source build reference packages" - https://github.com/dotnet/source-build-reference-packages. This is where we put the code to build the ref assemblies of previous versions that our product needs in order to build. For example, if someone is referencing 4.5.4 of System.Memory, we don't build that full package during source-build. Instead, we just build the ref assemblies in it in order to satisfy the compiler.

  6. dougbu commented on Oct 14, 2021

    @dougbu
  7. dagood commented on Oct 14, 2021

    @dagood
    Member

    We also previously didn't need Microsoft.AspNetCore.App.Ref for source-build because it's separate from the shared framework (and the shared framework was all we needed in source-build).

    Maybe this is just a difference in wording, but source-build has always needed the ref pack. The source-build team has run ildasm on it and stuffed the IL source code into the SBRP repository in the past so it can be recreated during the build from source without going through aspnetcore's infrastructure.

    Now that the ref pack contains analyzers/source generators (which are not reference assemblies), building the ref pack in SBRP is no longer an option for source-build. For distro maintainers, it's ok-ish for us to store references in SBRP, but code that will be executed is not ok--i.e. analyzers. So, we should build it during the aspnetcore build, just like the Microsoft build does.


    When we get to source-building a 6.0.1 SDK that ships with a 6.0.0 targeting pack, we'll have a new problem, because the Microsoft build won't rebuild the targeting pack (unless there's a bug, or unless current Microsoft plans change). There are a few potential solutions that need looking into--but the 6.0.1 plans aren't part of this 6.0.0 proposal so I'll leave it at that for now.


    If I'm understanding correctly, the fix would be to simply delete https://github.com/dotnet/aspnetcore/blob/release/6.0/Directory.Build.props#L145

    Yep, I'm going to be working on this. Someone else on the team tried this earlier and it wouldn't build--I haven't gotten into it quite yet.

  8. dougbu commented on Oct 14, 2021

    @dougbu

    I'm going to be working on this. Someone else on the team tried this earlier and it wouldn't build--I haven't gotten into it quite yet.

    👍 Ping me on the PR @dagood if you get it up today. I'll be OOF Friday through Monday and Will is OOF today and tomorrow. So, use aspnet-build if things get going tomorrow.

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

Metadata

Metadata

Assignees

Labels

area-prebuilts

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions