-
January 7th, 2022, 09:13 PM
#1
How to use Nuget assembly as files with visual studio community
I am starting a new coding job with a new client.
The problem I am having is that a lot of issues with namespaces that can not be found or maybe missing directives or an assembly reference. This, I think, is a common thing. So I am wondering where I can download a free DLL from Microsoft that will do the trick and get me to compile my code. The class the code is using that the compiler does not like is "GeoPoint".
A quick search online offered using nuget to install the package Azure.Core.
So, how do I do this? I am using Microsoft Visual Studio Community 2019. I am looking for some direction. Please advise.
On my work computer, I went to https://azure.microsoft.com/en-us/downloads/ in my browser but it is blocked. So, I am assuming now that I have to use visual studio itself to add new assemblies instead of using a browser. Is that right or do I have to ask my administrator for access?
The page:
https://www.nuget.org/packages/Azure.Core/
offers me another hint with "Package Manager"
I found under Project->Manage Nuget Packages..." in visual studio but when i try to uplad a package I get an error message.
So, my manager said I fist need to download an assemply.
Please advise.
-
January 31st, 2022, 06:46 AM
#2
Re: How to use Nuget assembly as files with visual studio community
A bit late.
Yes, you could use either of two methods mentioned.
Let's say you navigate to
https://www.nuget.org/packages/Azure.Core/
You will see that the package is there.
Click on the .NET CLI tab.
This gives you code such as:
dotnet add package Azure.Core --version 1.22.0
Then open the visual studio command prompt on your comptuer and paste the code in there.
Voila
-
February 9th, 2022, 11:54 PM
#3
Re: How to use Nuget assembly as files with visual studio community
Originally Posted by CaptainXarzu
So, my manager said I fist need to download an assemply.
It's rare that you need to ever download an assembly (unless you are working with very old code).
Most assemblies can be installed with NuGet package manager. In Visual Studio, right click on the project in the solution explorer and choise, "manage NuGet Packages."
Your IT team needs to give access to the NuGet url. You can view this url in visual studio under the tools/options menu and the NuGet node.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|