Skip to content

Handle obsolete InterceptorsPreview with .NET 8 RC2 SDK #50797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

mthalman
Copy link
Member

Handle obsolete InterceptorsPreview with .NET 8 RC2 SDK

Description

When building the runtime repo using the latest build of .NET 8 RC2 SDK, it produces the following error:

##[error]/vmr/src/aspnetcore/artifacts/source-build/self/src/src/Identity/Core/src/Microsoft.AspNetCore.Http.RequestDelegateGenerator/Microsoft.AspNetCore.Http.RequestDelegateGenerator.RequestDelegateGenerator/GeneratedRouteBuilderExtensions.g.cs(62,10): error CS9137: (NETCORE_ENGINEERING_TELEMETRY=Build) The 'interceptors' experimental feature is not enabled in this namespace. Add '<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Microsoft.AspNetCore.Http.Generated</InterceptorsPreviewNamespaces>' to your project.

This is due to a new change from Roslyn: dotnet/roslyn#69848. It replaces the usage of the InterceptorsPreview feature with an InterceptorsPreviewNamespaces property that needs to specify the applicable namespace.

The use of InterceptorsPreview in the project is still needed in order to work with the RC1 SDK. Both need to be specified as support for both versions of the SDK is required to support source-build scenarios. A separate issue will be logged as follow-up to remove the obsolete InterceptorsPreview feature usage.

This change is needed for RC2 release.

@mthalman
Copy link
Member Author

@captainsafia - Failures seem to be due to flaky tests.

@captainsafia
Copy link
Member

@wtgodbe Can you help merge this?

Also, not sure if we need tactics at this point. The change here isn't in the product...

@wtgodbe
Copy link
Member

wtgodbe commented Sep 19, 2023

@mthalman do we need this in RC2? We snapped the branch yesterday. At this point the release/8.0 branch is the RTM branch

@mthalman mthalman changed the base branch from release/8.0 to release/8.0-rc2 September 19, 2023 16:52
@mthalman
Copy link
Member Author

@mthalman do we need this in RC2? We snapped the branch yesterday. At this point the release/8.0 branch is the RTM branch

Bummer, just ahead of the snap. I've retargeted to RC2 branch.

Shouldn't need Tactics since this is infrastructure.

@wtgodbe wtgodbe added the tell-mode Indicates a PR which is being merged during tell-mode label Sep 19, 2023
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Sep 19, 2023
@wtgodbe
Copy link
Member

wtgodbe commented Sep 19, 2023

Sounds good. We have auto-merges from rc2 -> 8.0 so it'll make it there automatically.

We also have auto-merges from 8.0 to main, should this go into main as well?

@wtgodbe wtgodbe enabled auto-merge (squash) September 19, 2023 16:55
@mthalman
Copy link
Member Author

should this go into main as well?

Yeah, it'll be needed in main too.

@wtgodbe wtgodbe merged commit 909476d into dotnet:release/8.0-rc2 Sep 19, 2023
@ghost ghost added this to the 8.0-rc2 milestone Sep 19, 2023
@mthalman mthalman deleted the interceptors branch September 19, 2023 18:36
SteveSandersonMS added a commit that referenced this pull request Sep 20, 2023
* Handle obsolete InterceptorsPreview with .NET 8 RC2 SDK (#50797)

* Quarantine (actually comment out) one of the CanRenderComponentWithPersistedState cases (#50811)

See #50810

* Stop processing original response streaming content if user has started navigating away (#50814)

* Reproduce #50733 as a failing E2E test

* Don't process original request blazor-ssr content if the user has already navigated away

* Quarantine (actually comment out) one of the CanRenderComponentWithPersistedState cases

See #50810

* Update EventTest.cs

* Disable another flaky test

---------

Co-authored-by: Matt Thalman <[email protected]>
Co-authored-by: Steve Sanderson <[email protected]>
SteveSandersonMS added a commit to dotnet-maestro-bot/AspNetCore that referenced this pull request Sep 20, 2023
…0823)

* Handle obsolete InterceptorsPreview with .NET 8 RC2 SDK (dotnet#50797)

* Quarantine (actually comment out) one of the CanRenderComponentWithPersistedState cases (dotnet#50811)

See dotnet#50810

* Stop processing original response streaming content if user has started navigating away (dotnet#50814)

* Reproduce dotnet#50733 as a failing E2E test

* Don't process original request blazor-ssr content if the user has already navigated away

* Quarantine (actually comment out) one of the CanRenderComponentWithPersistedState cases

See dotnet#50810

* Update EventTest.cs

* Disable another flaky test

---------

Co-authored-by: Matt Thalman <[email protected]>
Co-authored-by: Steve Sanderson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-identity Includes: Identity and providers area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework tell-mode Indicates a PR which is being merged during tell-mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants