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
| Project | Project folder or any folder up to the drive root| In a project folder, settings apply only to that project. In parent folders that contain multiple projects subfolders, settings apply to all projects in those subfolders. |
40
-
| User | Windows: %APPDATA%\NuGet\NuGet.Config<br/>Mac/Linux: ~/.nuget/NuGet.Config | Settings apply to all operations, but are overridden by any project-level settings. When using CLI commands, you can specify a different config file using the `-configFile` switch to ignore any settings in the default user-level file. |
39
+
| Project |Current folder (aka Project folder) or any folder up to the drive root.| In a project folder, settings apply only to that project. In parent folders that contain multiple projects subfolders, settings apply to all projects in those subfolders. |
40
+
| User | Windows: %APPDATA%\NuGet\NuGet.Config<br/>Mac/Linux: ~/.nuget/NuGet.Config | Settings apply to all operations, but are overridden by any project-level settings. |
41
41
| Computer | Windows: %ProgramFiles(x86)%\NuGet\Config<br/>Mac/Linux: $XDG_DATA_HOME (typically ~/.local/share) | Settings apply to all operations on the computer, but are overriden by any user- or project-level settings. |
42
42
43
43
Notes for earlier versions of NuGet:
44
44
- NuGet 3.3 and earlier used a `.nuget` folder for solution-wide settings. This file not used in NuGet 3.4+.
45
-
- For NuGet 2.6 to 3.x, the computer-level config file on Windows was located in %ProgramData%\NuGet\Config[\\{IDE}[\\{Version}[\\{SKU}]]]\NuGet.Config, where *{IDE}* can be *VisualStudio*, *{Version}* was the Visual Studio version such as *14.0*, and *{SKU}* is either *Community*, *Pro*, or *Enterprise*. To migrate settings to NuGet 4.0+, simply copy the config file to %ProgramFiles(x86)%\NuGet\Config. On Linus, this previous location was /etc/opt, and on Mac, /Library/Application Support.
45
+
- For NuGet 2.6 to 3.x, the computer-level config file on Windows was located in %ProgramData%\NuGet\Config[\\{IDE}[\\{Version}[\\{SKU}]]]\NuGet.Config, where *{IDE}* can be *VisualStudio*, *{Version}* was the Visual Studio version such as *14.0*, and *{SKU}* is either *Community*, *Pro*, or *Enterprise*. To migrate settings to NuGet 4.0+, simply copy the config file to %ProgramFiles(x86)%\NuGet\Config. On Linux, this previous location was /etc/opt, and on Mac, /Library/Application Support.
Copy file name to clipboardExpand all lines: docs/Quickstart/Create-and-Publish-a-Package.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,14 +121,14 @@ Once you have a `.nupkg` file, you publish it to nuget.org using the `push` comm
121
121
122
122
1. Once logged in, select your user name (on the upper right), then select **API Keys**.
123
123
124
-
1. Select **Create**, provide a name for your key, select **Select Scopes > Push**Under **API Key**, enter * for **Glob pattern**, then select **Create**.
124
+
1. Select **Create**, provide a name for your key, select **Select Scopes > Push** under **API Key**, enter * for **Glob pattern**, then select **Create**.
125
125
126
126
1. Once the key is created, select **Copy** to retrieve the access key you'll need in the CLI:
127
127
128
128

129
129
130
130
> [!Warning]
131
-
> Save your key in a secure location and keep is a secret. If your key is accidentally revealed, you can always regenerate it at any time. You can also remove the API key if you no longer want to push packages via the CLI.
131
+
> Save your key in a secure location and keep it secret. If your key is accidentally revealed, you can regenerate it at any time. You can also remove the API key if you no longer want to push packages via the CLI.
132
132
133
133
1. At a command prompt, run the following command, specifying your package name and replacing the key with the value copied in step 4:
Copy file name to clipboardExpand all lines: docs/Quickstart/Use-a-Package.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,15 @@ NuGet packages are units of reusable code that other developers make available t
23
23
24
24
Once installed, refer to the package in code with `using <namespace>` where \<namespace\> is specific to the package you're using. Once the reference is made, you can call the package through its API.
25
25
26
-
The remainder of this topic walks through the process of using the Package Manager UI to install the popular [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) package in a Universal Windows Platform (UWP) project. It then shows an example of using the package. You use a similar same workflow for virtually every NuGet package you use in a project.
26
+
The remainder of this topic walks through the process of using the Package Manager UI to install the popular [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) package in a Universal Windows Platform (UWP) project. It then shows an example of using the package. You use a similar workflow for other NuGet packages.
-[Add the Newtonsoft.Json NuGet package](#add-the-newtonsoftjson-nuget-package)
31
31
-[Use the Newtonsoft.Json API in the app](#use-the-newtonsoftjson-api-in-the-app)
32
32
33
33
> [!Tip]
34
-
> **Start with nuget.org**: Installing packages from nuget.org is a common workflow that .NET developers use to find components they can reuse in their own applications. You can always search nuget.org directly or find and install packages within Visual Studio as shown in this topic.
34
+
> **Start with nuget.org**: Installing packages from nuget.org is a common workflow that .NET developers use to find components they can use in their own applications. You can always search nuget.org directly or find and install packages within Visual Studio as shown in this topic.
Copy file name to clipboardExpand all lines: docs/Reference/Errors-and-Warnings.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ The errors and warnings listed here are available only with [PackageReference-ba
131
131
|**Common causes**| Packages contain dependency on exact versions of a package instead of open-ended ranges. |
132
132
|**Example message**|*Unable to satisfy conflicting requests for {id}: {conflict path} Framework: {target graph}*|
133
133
134
-
<a name="NU1107></a>
134
+
<aname="NU1107"></a>
135
135
136
136
### NU1107 (Previously NU1607)
137
137
@@ -141,7 +141,7 @@ The errors and warnings listed here are available only with [PackageReference-ba
141
141
|**Common causes**| Packages with dependency constraints on exact versions do not allow other packages to increase the version if needed. |
142
142
|**Example message**|*Version conflict detected for NuGet.Versioning. Reference the package directly from the project to resolve this issue.<br/> NuGet.Packaging 3.5.0 -> NuGet.Versioning (= 3.5.0)<br/> NuGet.Configuration 4.0.0 -> NuGet.Versioning (= 4.0.0)*|
143
143
144
-
<a name="NU1108></a>
144
+
<aname="NU1108"></a>
145
145
146
146
### NU1108 (Previously NU1606)
147
147
@@ -261,8 +261,6 @@ The errors and warnings listed here are available only with [PackageReference-ba
261
261
262
262
## Resolver conflict warnings
263
263
264
-
[NU1608](#nu1608)
265
-
266
264
### NU1608
267
265
268
266
|||
@@ -273,8 +271,6 @@ The errors and warnings listed here are available only with [PackageReference-ba
273
271
274
272
## Package fallback warnings
275
273
276
-
[NU1701](#nu1701)
277
-
278
274
### NU1701
279
275
280
276
|||
@@ -285,8 +281,6 @@ The errors and warnings listed here are available only with [PackageReference-ba
You can install a NuGet package in three different ways:
2
2
3
3
| Method | Description | Reference |
4
4
| --- | --- | --- |
5
5
| nuget.exe CLI: `nuget install <package_name>`| Downloads the package identified by \<package_name\> and expands its contents into a folder in the current directory. If no packages are specified, installs all packages listed in the project's `packages.config` file. No changes are made to any project files. Dependencies are also downloaded and expanded. |[CLI reference](../tools/nuget-exe-CLI-Reference.md)|
6
6
| Package Manager Console (Visual Studio): `Install-Package <package_name>`| Downloads and installs the package into the current project, then update the project file to list the package as a dependency. |[Package Manager Console Guide](../tools/Package-Manager-Console.md)|
7
-
| Package Manager UI (Visual Studio) | Provides a UI through which you can browse, select, and install packages into a project. Updates the project file to list the package as a dependency. |[Package Manager UI Reference](../tools/Package-Manager-UI.md)|
7
+
| Package Manager UI (Visual Studio) | Provides a UI through which you can browse, select, and install packages into a project. Updates the project file to list the package as a dependency. |[Package Manager UI Reference](../tools/Package-Manager-UI.md)|
0 commit comments