Skip to content

Conversation

@jamescrosswell jamescrosswell marked this pull request as ready for review June 12, 2025 05:18
}

var read = await _innerStream.ReadAsync(buffer, offset, actualCount, cancellationToken)
// See https://github.com/getsentry/sentry-dotnet/issues/3101
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

off, some .NET bug? how can we avoid this from happening again?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have treat-warning-as-error on?

Copy link
Member

@Flash0ver Flash0ver Jun 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we only have the Default ruleset enabled, depending on the .NET SDK version.
We could enable All rules, and also lock/pin to a specific .NET SDK ruleset for deterministic builds.

Opened new issue as follow-up for more code analysis rules and diagnostics: #4287

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have treat-warning-as-error on?

We do but the analyzers for this error only appear to trigger in the .NET 10 SDK (we weren't getting any errors before that).

@bruno-garcia bruno-garcia merged commit 6900cce into main Jun 12, 2025
36 checks passed
@bruno-garcia bruno-garcia deleted the readasync-llvm branch June 12, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some attachments not send on MAUI

4 participants