microsoft / DevHomeAzureExtension

Dev Home Azure Extension
MIT License
77 stars 16 forks source link

Update devbox feature branch with latest sdk and dot net 8 json context changes #129

Closed bbonaby closed 7 months ago

bbonaby commented 7 months ago

Summary of the pull request

This PR updates the DevBox feature branch with the latest sdk changes from Dev Home main. It also adds Json source generation for System.Text.Json due to changes in .Net 8. Each class that we intend to deserialize Json strings into classes now uses the JsonSerializableAttribute on top of a new JsonSourceGenerationContext class that derives from JsonSerializerContext. See How to use source generation in System.Text.Json - .NET | Microsoft Learn. Without this there will be runtime exceptions when building the extension with the official build scripts/pipelines.

References and relevant issues

Detailed description of the pull request / Additional comments

Validation steps performed

PR checklist