Skip to content

CA2022 error in RazorSdk tool source #39893

Closed
@NikolaMilosavljevic

Description

@NikolaMilosavljevic

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

##[error]/vmr/src/sdk/src/RazorSdk/Tool/Client.cs(172,31): error CA2022: (NETCORE_ENGINEERING_TELEMETRY=Build) Avoid inexact read with 'System.IO.Stream.ReadAsync(byte[], int, int, System.Threading.CancellationToken)' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2022)
##[error]/vmr/src/sdk/src/RazorSdk/Tool/ConnectionHost.cs(110,31): error CA2022: (NETCORE_ENGINEERING_TELEMETRY=Build) Avoid inexact read with 'System.IO.Stream.ReadAsync(byte[], int, int, System.Threading.CancellationToken)' (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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions