Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Instance class TranslatorClient isn't recognized even when I installed the specific package and added needed header when want to translate xml file

$
0
0

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:The package which is needed

I have tried to install specifing package for working with azureapi translation but the instance class doesn't work after installation.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>