Skip to content

Conversation

@alexwolfmsft
Copy link
Contributor

Summary

Describe your changes here.

Fixes #Issue_Number (if available)

@dotnetrepoman dotnetrepoman bot added this to the December 2025 milestone Dec 9, 2025
@alexwolfmsft alexwolfmsft marked this pull request as ready for review December 9, 2025 20:30
Copilot AI review requested due to automatic review settings December 9, 2025 20:30
@alexwolfmsft alexwolfmsft requested a review from a team as a code owner December 9, 2025 20:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades sample code snippets from .NET 8/9 to .NET 10 and addresses compiler warnings related to nullability and type safety.

  • Updates target frameworks from net8.0 and net9.0 to net10.0 across all project files
  • Fixes nullability warnings in mock implementations and P/Invoke signatures
  • Updates Azure SDK package versions to their latest compatible releases

Reviewed changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/azure/sdk/snippets/unit-testing/UnitTestingSampleApp.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/unit-testing/ResourceManager/NonLibrary/MockMockableComputeResourceGroupResource.cs Fixed nullability warning by initializing mock in internal constructor and improved type casting
docs/azure/sdk/snippets/unit-testing/NonLibrary/MockSecretClient.cs Added nullable annotations to optional version parameters
docs/azure/sdk/snippets/protocol-convenience-methods/SCM/Protocol/SCMProtocol.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/protocol-convenience-methods/SCM/ExceptionHandling/SCMConvenience.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/protocol-convenience-methods/SCM/Convenience/SCMConvenience.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/protocol-convenience-methods/AzureCore/Protocol/AzureCoreProtocol.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/protocol-convenience-methods/AzureCore/ExceptionHandling/AzureCoreConvenience.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/protocol-convenience-methods/AzureCore/Convenience/AzureCoreConvenience.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/pagination/pagination.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/logging/LoggingSampleApp.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/dependency-injection/WebApplicationBuilder/WebApplicationBuilder.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/dependency-injection/HostBuilder/HostBuilder.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/dependency-injection/HostApplicationBuilder/HostApplicationBuilder.csproj Upgraded target framework to net10.0
docs/azure/sdk/snippets/dependency-injection/Directory.Packages.props Updated Azure SDK packages to latest versions including Azure.Identity 1.17.1, Microsoft.Extensions.Hosting 10.0.0, and others
docs/azure/sdk/snippets/configure-proxy/ProxyServerConfiguration.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/authentication/user-assigned-managed-identity/UserAssignedIdentityClientId.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/authentication/system-assigned-managed-identity/SystemAssignedIdentityClientId.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/authentication/local-dev-service-principal/UserAssignedIdentityClientId.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/authentication/local-dev-service-principal/Program.cs Added null-coalescing operator to handle potential null from FirstOrDefault()
docs/azure/sdk/snippets/authentication/local-dev-account/Program.cs Added null-coalescing operator to handle potential null from FirstOrDefault()
docs/azure/sdk/snippets/authentication/credential-chains/CredentialChains.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/authentication/brokered/maui-app/BrokeredMaui.csproj Upgraded all target frameworks to net10.0 variants
docs/azure/sdk/snippets/authentication/brokered/console-app/Program.cs Added nullable annotation to P/Invoke display parameter
docs/azure/sdk/snippets/authentication/brokered/console-app/BrokeredConsole.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/authentication/best-practices/PCA/PublicClientApp.csproj Upgraded target framework from net9.0-windows to net10.0-windows
docs/azure/sdk/snippets/authentication/best-practices/CCA/ConfidentialClientApp.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/authentication/additional-auth/interactive/InteractiveBrokeredAuth.csproj Upgraded target framework from net9.0-windows to net10.0-windows
docs/azure/sdk/snippets/aspnetcore-guidance/MinApiSample/MinApiSample.csproj Upgraded target framework from net9.0 to net10.0
docs/azure/sdk/snippets/aspnetcore-guidance/BlazorSample/BlazorSample.csproj Upgraded target framework from net9.0 to net10.0

@alexwolfmsft alexwolfmsft merged commit 589188f into main Dec 10, 2025
11 checks passed
@alexwolfmsft alexwolfmsft deleted the dotnet-10-updates branch December 10, 2025 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants