How to import Azure library in Unity Project

mercuryandtim 0 Reputation points
2023-09-04T15:45:00.72+00:00

Hello All,

I have been trying to use Azure Service in my unity project using REST API and it works. Currently, I am experimenting with Azure SDK.

I have tried Nuget Gallery in Visual Studio Code to add Azure Library in my unity project. However, I keep getting the following error:

info : Adding PackageReference for package 'Azure.Core' into project 'c:/Users/[username]/Downloads/[username]/UIPackage/Assembly-CSharp.csproj'.
error: Error while adding package 'Azure.Core' to project 'c:/Users/[username]/Downloads/[username]/UIPackage/Assembly-CSharp.csproj'. The project does not support adding package references through the add package command.

I wonder if someone knows how to successfully import Azure SDK into Unity Project?

Unity Version ( tried both 2020.3.24f1 and 2021.3.16f1)
Visual Studio Code version 1.81.1
Nuget Gallery v0.0.24

Thanks

D

PS. I haved asked in Unity Forum but got no feedback.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,619 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Saurabh Sharma 23,851 Reputation points Microsoft Employee Moderator
    2023-09-05T21:32:14.9633333+00:00

    Hi mercuryandtim,

    Thanks for using Microsoft Q&A!!

    As per this StackOverflow thread, you may need to manually download the .nupkg file from Nuget website and extract the DLLs to your unity project Assets folder. Please let us know if it does not work.

    Thanks

    Saurabh

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.