You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resolve Microsoft.AspNetCore.App.Ref prebuilt for 6.0 #2506
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).
@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.
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.
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.
Activity
eerhardt commentedon Oct 14, 2021
cc @captainsafia @pranavkm @dougbu - any thoughts here?
dougbu commentedon Oct 14, 2021
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❔
dougbu commentedon Oct 14, 2021
Also, what's "SBRP"❔
eerhardt commentedon Oct 14, 2021
@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 the6.0.0ref pack.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
refassemblies of previous versions that our product needs in order to build. For example, if someone is referencing4.5.4ofSystem.Memory, we don't build that full package during source-build. Instead, we just build therefassemblies in it in order to satisfy the compiler.dougbu commentedon Oct 14, 2021
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
dagood commentedon Oct 14, 2021
Maybe this is just a difference in wording, but source-build has always needed the ref pack. The source-build team has run
ildasmon 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.
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.
dougbu commentedon Oct 14, 2021
👍 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-buildif things get going tomorrow.