'nuget' is not recognized but other nuget commands working

前端 未结 9 1391
走了就别回头了
走了就别回头了 2020-12-02 10:41

I am trying to create a nuget package using http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package#From_a_convention_based_working_directory as a ref

相关标签:
9条回答
  • 2020-12-02 11:30

    You can also try setting the system variable path to the location of your nuget exe and restarting VS.

    1. Open your system PATH variable and add the location of your nuget.exe (for me this is: C:\Program Files (x86)\NuGet\Visual Studio 2013)
    2. Restart Visual Studio

    I would have posted this as a comment to your answer @done_merson but I didn't have the required reputation to do that.

    0 讨论(0)
  • 2020-12-02 11:32

    In [Package Manager Console] try the below

    Install-Package NuGet.CommandLine
    
    0 讨论(0)
  • 2020-12-02 11:40
    • Right-click on your project in solution explorer.
    • Select Manage NuGet Packages for Solution.
    • Search NuGet.CommandLine by Microsoft and Install it.
    • On complete installation, you will find a folder named packages in your project. Go to solution explorer and look for it.
    • Inside packages look for a folder named NuGet.CommandLine.3.5.0, here 3.5.0 is just version name your folder name will change accordingly.
    • Inside NuGet.CommandLine.3.5.0 look for a folder named tools.
    • Inside tools you will get your nuget.exe
    0 讨论(0)
提交回复
热议问题