[Azure.AI.Translation.Document] .NET 6+ preprocessor directives removed due to code not compiling #47131
Labels
Client
This issue points to a problem in the data-plane of the library.
Cognitive - Translator
Service Attention
Workflow: This issue is responsible by Azure service team.
Previously Azure.AI.Translation.Document only included a netstandard2.0 target. In DocumentTranslateContent.Serialization.cs there were two lines of code inside preprocessor directives for .NET 6+. Since there was not a net6.0+ target, these lines of code were not being compiled. When a net8.0 target was added, these lines of code failed to compile because the code was out of date from when it was written. In order to preserve existing behavior, they were removed.
This is not a regression because they were not being used previously.
The library author(s) should consider whether these should be added back and how to fix the code if so.
See L60-67:
See L41-48:
See: https://github.com/Azure/azure-sdk-for-net/pull/46637/files#r1819709439
The text was updated successfully, but these errors were encountered: