Skip to content

System.Text.Encoding.CodePages giving warning will not be pruned when used with .net version 10 #54530

@sk-Nikhil

Description

@sk-Nikhil

Version Used: .net 10

Steps to Reproduce:

  1. PackageReference Include="System.Text.Encoding.CodePages"
    Version="10.0.0"
  2. use targetFramework .net version 10

A minimal repro, with source-code provided, is ideal. Most compiler/language issues can be distilled into a snippet that can be pasted into .NET Lab.

Diagnostic Id:

If this is a report about a bug in an analyzer, please include the diagnostic ID and message if possible (e.g. "IDE0030: Use coalesce expression").

Expected Behavior:should not give error/warning

Actual Behavior: PackageReference System.Text.Encoding.CodePages will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions