Skip to content

Interceptors preview error in stage 2 builds of VMR #3630

Closed
@mthalman

Description

@mthalman

The stage 2 build of release/8.0.1xx is currently failing with this error:

/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/Microsoft.Extensions.Logging.Configuration/src/Microsoft.Extensions.Configuration.Binder.SourceGeneration/Microsoft.Extensions.Configuration.Binder.SourceGeneration.ConfigurationBindingGenerator/BindingExtensions.g.cs(33,10): error CS9137: The 'interceptors' experimental feature is not enabled in this namespace. Add '<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration</InterceptorsPreviewNamespaces>' to your project. [/vmr/src/runtime/artifacts/source-build/self/src/src/libraries/Microsoft.Extensions.Logging.Configuration/src/Microsoft.Extensions.Logging.Configuration.csproj::TargetFramework=net8.0]

This is caused by a change in roslyn: dotnet/roslyn#69848

Backports to fix the issue in both runtime and aspnetcore:
dotnet/runtime#92247
dotnet/aspnetcore#50797

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions