Skip to content

CA2022 error in src/Microsoft.Web.XmlTransform/XmlFileInfoDocument.cs #583

Closed
@NikolaMilosavljevic

Description

@NikolaMilosavljevic

New SDK introduces new warnings that turn into errors in VMR build - see dotnet/installer#19145 (comment)

##[error]/vmr/src/xdt/src/Microsoft.Web.XmlTransform/XmlFileInfoDocument.cs(93,17): error CA2022: (NETCORE_ENGINEERING_TELEMETRY=Build) Avoid inexact read with 'System.IO.Stream.Read(byte[], int, int)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2022)

I'm going to patch to disable this warning, in VMR builds. However this needs to be properly fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions