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

Update projects targeting net6 to net8 - part3 #9021

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

JimSuplizio
Copy link
Member

net6 hits EOL in November, 2024 and this is to update things to net8. This is the third round of projects.

Contributes to #8606

@JimSuplizio JimSuplizio self-assigned this Sep 20, 2024
@@ -160,7 +160,7 @@ private async Task<byte[]> ReadAndValidateContentFromGitHubAsync(GitHubRule rule
return payloadContent;
}

private SHA256CryptoServiceProvider sha256 = new SHA256CryptoServiceProvider();
private SHA256 sha256 = SHA256.Create();
Copy link
Member Author

Choose a reason for hiding this comment

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

In net8 the SHA256CryptoServiceProvider class is deprecated and they recommend using the SHA256CryptoServiceProvider's base class' Create method.

@@ -285,7 +285,7 @@ public async Task RouteAsync(Guid route, HttpRequest request)
payload
);

throw ex;
throw;
Copy link
Member Author

Choose a reason for hiding this comment

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

throw ex vs throw - The former loses the stack prior to the throw and, in net8, is now a warning. I'm assuming this was in error as it removes the relevant callstack

@JimSuplizio JimSuplizio merged commit 6db814c into Azure:main Sep 20, 2024
9 of 10 checks passed
@JimSuplizio JimSuplizio deleted the UpdateNet6ToNet8Part3 branch September 20, 2024 16:33
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