You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Guides/Install-NuGet.md
+34-22Lines changed: 34 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: Installing NuGet | Microsoft Docs
5
5
author: kraigb
6
6
ms.author: kraigb
7
7
manager: ghogen
8
-
ms.date: 1/9/2017
8
+
ms.date: 4/4/2017
9
9
ms.topic: article
10
10
ms.prod: nuget
11
11
#ms.service:
@@ -32,7 +32,7 @@ ms.reviewer:
32
32
33
33
There are two primary tools available to help you build, publish and consume NuGet packages:
34
34
35
-
1. The [**NuGet CLI**](#nuget-cli) is the command-line utility that works on Windows, Mac OS X, and Linux and supports all NuGet capabilities.
35
+
1. The [**NuGet CLI**](#nuget-cli) is the command-line utility for Windows that provides all NuGet capabilities; it can also be run on Mac OSX and Linux either through Mono or through the .NET Core CLI.
36
36
1. The [**NuGet Package Manager in Visual Studio**](#nuget-package-manager-in-visual-studio) is a GUI tool for managing packages and includes a console through which you can use certain NuGet commands directly within Visual Studio. It's included with Visual Studio 2012 and later and can be installed manually for earlier versions.
37
37
38
38
Both support the following operations:
@@ -60,7 +60,11 @@ The following capabilities are supported only in the NuGet CLI:
60
60
61
61
## NuGet CLI
62
62
63
-
The NuGet CLI can be installed using any of the following methods:
63
+
The NuGet command-line interface provides access to all NuGet capabilities, and can be run on Windows, Mac OSX, and Linux as described in the following sections.
64
+
65
+
### Windows
66
+
67
+
On Windows, the NuGet CLI can be installed using any of the following methods:
64
68
65
69
1.**nuget.org**: Download the latest version of the nuget.exe file from [nuget.org/downloads](https://nuget.org/downloads) and save it to an appropriate location on your machine. If desired, add that location to your PATH environment variable so you can NuGet from anywhere. (Note that the download is a single .exe file, so save it rather than running it from the browser.)
66
70
@@ -80,25 +84,33 @@ The NuGet CLI can be installed using any of the following methods:
80
84
>
81
85
> Because there are a few breaking changes introduced in NuGet 3.2, [https://nuget.org/nuget.exe](https://nuget.org/nuget.exe) points to the latest stable NuGet 2.x release to prevent CI systems from potentially breaking at this time.
82
86
83
-
### Compatibility with Mono
84
-
85
-
Though not fully-supported as yet, the NuGet command-line executable (version 3.2 and above) will run on Mac OS X and Linux systems when the Mono runtime is installed with a few limitations:
86
-
87
-
- Commands tested to work:
88
-
- Config
89
-
- Delete
90
-
- Help
91
-
- Install
92
-
- List
93
-
- Push
94
-
- SetApiKey
95
-
- Sources
96
-
- Spec
97
-
- Partially-working commands:
98
-
- Pack: works with `.nuspec` files but not with project files.
99
-
- Restore: works with `packages.config` and `project.json` files but not with solution (`.sln`) files.
100
-
- Commands that do not work:
101
-
- Update
87
+
<a name="compatibility-with-mono"></a>
88
+
89
+
## Mac OSX and Linux
90
+
91
+
On Mac OSX and Linux, there are two ways to run NuGet:
92
+
93
+
1. Install the [.NET Core SDK](https://www.microsoft.com/net/download/core), which includes NuGet capabilities. Downloads are also listed on [github.com/dotnet/cli](https://github.com/dotnet/cli).
94
+
95
+
1. Install [Mono](http://www.mono-project.com/docs/getting-started/install/) and then use the nuget.exe command-line executable for Windows (version 3.2 and later) from [nuget.org/downloads](https://nuget.org/downloads). Running NuGet on Mono is subject to the following limitations:
96
+
97
+
- Commands tested to work:
98
+
- Config
99
+
- Delete
100
+
- Help
101
+
- Install
102
+
- List
103
+
- Push
104
+
- SetApiKey
105
+
- Sources
106
+
- Spec
107
+
108
+
- Partially-working commands:
109
+
- Pack: works with `.nuspec` files but not with project files.
110
+
- Restore: works with `packages.config` and `project.json` files but not with solution (`.sln`) files.
0 commit comments