Azure AI Vision Image Analysis service API not working
I'm trying to make an API call to this service with the code in the image (taken it directly from the Microsoft Learn website) and gives errors as seen in said image (doesn't build). I've also installed the latest nuget Common, ImageAnalysis & Azure.Core packages (latest version), yet the IDE im using (VSCode) doesn't recognize certain lines. is there something silly that i'm missing?
for example, the AzureKeyCredential() class is giving me the following error: "The type or namespace name 'AzureKeyCredential' could not be found (are you missing a using directive or an assembly reference?)". If i'm not mistaken this class belong to the Azure.Core namespace, which I also have installed (without specifying version, so supposedly it grabbed the latest version).
I'm also running .NET version 7.0.405
0 Replies