CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2018
    Posts
    9

    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.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,278

    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
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,493

    Re: How to use Nuget assembly as files with visual studio community

    Quote Originally Posted by CaptainXarzu View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured