Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build with .NET 9.0 SDK #1427

Merged
merged 3 commits into from
Jun 16, 2024
Merged

fix build with .NET 9.0 SDK #1427

merged 3 commits into from
Jun 16, 2024

Conversation

mus65
Copy link
Contributor

@mus65 mus65 commented Jun 15, 2024

SSH.NET is currently not buildable with .NET 9 because of newly introduced warnings CA1872 and CA2022, see separate commits.

see dotnet/roslyn-analyzers#7208

Most of these could be safely ignored because of the following assert.
As far as I can see, The SftpFileStream.Read() implementation guarentees
that the specified number of bytes is read anyway.
Copy link
Collaborator

@Rob-Hague Rob-Hague left a comment

Choose a reason for hiding this comment

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

Thanks

One day we'll stop every diagnostic being an error ...

@Rob-Hague Rob-Hague merged commit 1b71e8f into sshnet:develop Jun 16, 2024
1 check failed
@mus65 mus65 deleted the net9build branch September 14, 2024 09:30
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.

2 participants