How to select Manage NuGet Packages from VS Code

Antonios Kokiantonis 105 Reputation points
2023-12-20T11:57:05.3333333+00:00

Working state:

MS Learn -->

PL-400 -->

Introduction to developing with Microsoft Power Platform -->

Introduction to extending Power Platform -->

Exercise - Create a custom API -->

Step 13 - "Right click on the CustomAPILab Project and select Manage NuGet Packages"

I followed all previous steps with every detail. But when I follow the number 13, when I click to the CustomAPILab there is no option for the "Select NuGet Packages"

I thought of installing an extension, but if that's the case, there are many extentions related to Nuget packages.

User's image

Thank you for your consideration.

Antonios

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
314 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 60,386 Reputation points
    2023-12-21T17:38:58.97+00:00

    Currently visual studio code does not have a nuget package manager. You use the dotnet cli instead via a terminal.

    https://video2.skills-academy.com/en-us/nuget/consume-packages/install-use-packages-dotnet-cli

    you can use the nuget website to find packages and version numbers of packages

    https://www.nuget.org

    note: I typically just add them to the project file directly via the editor and then do a restore.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 27,641 Reputation points Microsoft Vendor
    2023-12-20T13:33:30.6133333+00:00

    Hi @Antonios Kokiantonis

    Welcome to Microsoft Q&A!

    Which version of Visual Studio are you using? 

    Do you mean that you can’t find the “Manage NuGet Packages…” like this?

    User's image

    Please open the Visual Studio Installer > Modify > Individual components > search “NuGet package manager” > ensure that it is installed. If it has been installed, you can try to uncheck the component and reinstall it. 

    Besides, please check that you open a project with the solution file in the Solution Explorer. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     


  2. SurferOnWww 2,406 Reputation points
    2023-12-21T00:55:50.3766667+00:00

    How about [Tools] => [NuGet Package Manager] => [Manage NuGet Packages for Solution...] as shown below?

    NuGet