Skip to content

On .NET 8 when using the configuration code generators, remove the RequiresUnreferencedCode atrributes #2574

@jmprieur

Description

@jmprieur

Microsoft.Identity.Web Library

Microsoft.Identity.Web

Microsoft.Identity.Web version

2.15.3

Web app

Not Applicable

Web API

Not Applicable

Token cache serialization

Not Applicable

Description

We have attributes to help trimmability on .NET 6 and 7
but on .NET we also have the code generators for the bind and configure, so when they apply we don't need to exclude the corresponding methods from trimmability.

Reproduction steps

See jmprieur/betterTrimNet8 branch

Error message

No response

Id Web logs

No response

Relevant code snippets

See jmprieur/betterTrimNet8 branch

Regression

No response

Expected behavior

Only have the attributes when not using the code generators

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions