Skip to content

Commit e38a62b

Browse files
authored
Merge pull request #3439 from NuGet/main
Merge to Live, June 2025
2 parents c838305 + 99f440d commit e38a62b

File tree

5 files changed

+26
-6
lines changed

5 files changed

+26
-6
lines changed

docs/concepts/Security-Best-Practices.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,27 @@ Being able to have information about your dependencies such as their license, tr
154154

155155
For more information about Dependabot alerts & security updates, [see the following documentation](https://docs.github.com/en/github/managing-security-vulnerabilities/about-alerts-for-vulnerable-dependencies).
156156

157+
## NuGet Configuration
158+
159+
**📦 Package Consumer**
160+
161+
Add a `nuget.config` file in the root of your project repository. This is considered a best practice as it promotes repeatability and ensures that different users have the same NuGet configuration.
162+
We recommend adding `clear` elements to ensure no user or machine specific configuration is applied. [Read more about how settings are applied](../consume-packages/configuring-nuget-behavior.md#how-settings-are-applied).
163+
164+
For example:
165+
166+
```xml
167+
<configuration>
168+
<packageSources>
169+
<clear />
170+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
171+
</packageSources>
172+
<packageSourceMapping>
173+
<clear />
174+
</packageSourceMapping>
175+
</configuration>
176+
```
177+
157178
### NuGet feeds
158179

159180
**📦 Package Consumer**

docs/consume-packages/Central-Package-Management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ For an idea of how central package management may look like, refer to our [sampl
127127

128128
You can automatically override a transitive package version even without an explicit top-level `<PackageReference />` by opting into a feature known as
129129
transitive pinning. This promotes a transitive dependency to a top-level dependency implicitly on your behalf when necessary.
130-
Note that downgrades are allowed when transitive pinning a package. If you attempt to pin a package to a lower version than the one requested by your dependencies, restore will raise a [NU1109](../reference/errors-and-warnings/NU1109.md) error.
130+
Note that downgrades are not allowed when transitive pinning a package. If you attempt to pin a package to a lower version than the one requested by your dependencies, restore will raise a [NU1109](../reference/errors-and-warnings/NU1109.md) error.
131131

132132
You can enable this feature by setting the MSBuild property `CentralPackageTransitivePinningEnabled` to `true` in a project or in a `Directory.Packages.props`
133133
or `Directory.Build.props` import file:

docs/hosting-packages/Overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Overview of Hosting Your Own NuGet Feeds
3-
description: An overview of opens for hosting your own NuGet package feeds or galleries either locally or remotely.
3+
description: An overview of options for hosting your own NuGet package feeds or galleries either locally or remotely.
44
author: JonDouglas
55
ms.author: jodou
66
ms.date: 3/2/2022

docs/nuget-org/nuget-org-faq.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,11 @@ sections:
9090
> NuGet.org recommends Alpine Linux users to upgrade to Alpine Linux 3.18.0 or newer. These versions support TCP fallback in the DNS resolver. If you use older versions of Alpine Linux that only support DNS over UDP, you may encounter DNS failures when accessing the [V3 API](https://learn.microsoft.com/nuget/nuget-org/overview-nuget-org#api-endpoint-for-nugetorg).
9191
9292
If that version of NuGet client continues to fail, [contact support](https://www.nuget.org/policies/Contact) and provide additional connection troubleshooting information including:
93-
93+
- !!! Your geographical area
9494
- The package sources you're using
9595
- The version of NuGet client you're using
9696
- A restore log with detailed verbosity
9797
- MTR or a Fiddler traces (see below)
98-
- Your geographical area
9998
- Whether your machine is behind a proxy or firewall?
10099
- Is your machine located on a cloud providers' data center (Azure, AWS etc)? If yes, please provide the name of the provider and the region.
101100

docs/reference/errors-and-warnings/NU1701.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ f1_keywords:
1515
> Package 'packageId' was restored using 'TargetFrameworkA' instead the project target framework 'TargetFrameworkB'. This package may not be fully compatible with your project.
1616
1717
### Issue
18-
`PackageTargetFallback` / `AssetTargetFallback` was used to select assets from a package. The warning let users know that the assets may not be 100% compatible.
18+
`AssetTargetFallback` was used to select assets from a package. The warning let users know that the assets may not be 100% compatible.
1919

2020
### Solution
2121
Change the project's target framework to one that the package supports.
2222

23-
[!INCLUDE [nugetsolver-tool](../../includes/nugetsolver-tool.md)]
23+
[!INCLUDE [nugetsolver-tool](../../includes/nugetsolver-tool.md)]

0 commit comments

Comments
 (0)