So I want to translate a specific xml file with AzureApi I installed the needed package called CognitiveServices.Translator.Client in Visual Studio 2022 , but when I want to create an instance of class TranslatorClient it isn't recognized for some reason. I also added the needed headers here:
using CognitiveServices.Translator.Client;using CognitiveServices.Translator;using CognitiveServices.Translator.Configuration;using CognitiveServices.Translator.Extension;using CognitiveServices.Translator.Translate;
Here is my body of an function which will translate the xml document:
TranslatorClient client = new TranslatorClient(subscriptionKey); ///TranslatorClient isn't recognized
Here you can see my installed packages in visual studio:
I have tried to install specifing package for working with azureapi translation but the instance class doesn't work after installation.