Update caching-nuget.md with SDK version pinning advice#14369
Open
Frulfump wants to merge 1 commit intoMicrosoftDocs:mainfrom
Open
Update caching-nuget.md with SDK version pinning advice#14369Frulfump wants to merge 1 commit intoMicrosoftDocs:mainfrom
Frulfump wants to merge 1 commit intoMicrosoftDocs:mainfrom
Conversation
Added recommendation to pin .NET SDK version for consistency.
Contributor
|
@Frulfump : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
Contributor
|
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the NuGet caching guidance in Azure Pipelines docs by adding a recommendation to pin the .NET SDK version (via global.json) when using lock files, to keep restores consistent across environments.
Changes:
- Adds a new NOTE recommending .NET SDK version pinning with
global.json. - Links to
global.jsondocumentation (includingrollForward=disable) and related upstream issues for context.
| ``` | ||
|
|
||
| > [!NOTE] | ||
| > It's also recommended to pin the version of the .NET SDK that's used so the SDK version and dependency graph stay in lockstep. See [global.json](/dotnet/core/tools/global-json) and especially the `rollForward` section with the `disable` value [global.json rollForward Policy](/dotnet/core/tools/global-json#rollforward). For related issues when not pinning, see [ASP.NET Core GitHub issue](https://github.com/dotnet/aspnetcore/issues/65061) and [.NET Core SDK GitHub issue](https://github.com/dotnet/sdk/issues/48795) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added recommendation to pin .NET SDK version for consistency.
See comment from Microsoft(Chet) here dotnet/sdk#48795 (comment)
Related dotnet/docs#53347
(The docs page doesn't have an easy way to know which page you can contribute to like the .NET pages does would be great if you had the same!

)