With Visual Studio version 17.12.5 and using .NET 9, and attempting to update PureCloudPlatform.Client.V2 to any version greater then v216, Visual Studio will generate a NU1605 WarningAsAnError during the update attempts for the following dependencies:
PureCloudPlatform.Client.V2 218.0.0 -> System.Text.Json 8.0.4 -> System.Text.Encodings.Web (>= 8.0.0)
PureCloudPlatform.Client.V2 218.0.0 -> System.Text.Encodings.Web (>= 7.0.0)
Version 216 works fine on downgrade and we can still upgrade to v227 once the default Visual Studio setting for TreatWarningsAsErrors
is set to false and do the upgrade after. Microsoft doesn't recommend doing this as per this link - NuGet Warning NU1605 | Microsoft Learn , but it so far appears to work.
What I would like to request on the next release for PureCloudPlatform (i.e. v228) is to also update the dependencies for System.Text.Json and System.Text.Encodings.Web for the latest versions available.
I would create a bug(?), but the support team told me to post in the Dev Forum first.