Skip to content

Package lock docs should mention pinning the SDK version as a recommendation #53517

@Frulfump

Description

@Frulfump

Type of issue

Missing information

Description

This section should also mention pinning the SDK as was done in #53347 for the global.json docs

(Are there more pages where either lock files or global.json version selection is mentioned? If so they would also be good candidates to get the same notice)

Rationale from the linked issue above:

see comment from Microsoft(Chet) here dotnet/sdk#48795 (comment)

Our current recommendation for users that use lock files is to also lock their SDK versions via global.json with no rollforward, >so they(sic) their entire toolchain stays in lockstep.

Linking to an issue to track for when that recommendation changes would be preferable or at least the specific issues which >most users run into which require pinning the SDK in relation to lock-files
dotnet/aspnetcore#65061
dotnet/sdk#48795

It will aid in discovery of this fact

Ideally the blog post https://devblogs.microsoft.com/dotnet/enable-repeatable-package-restores-using-a-lock-file/ is also updated

Page URL

https://learn.microsoft.com/en-us/dotnet/core/install/upgrade#package-lock-files

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/install/upgrade.md

Document Version Independent Id

a20fa96c-6d92-d941-f6d0-bf0369028e7f

Platform Id

16950b17-b581-c2c6-3825-a45465ac0617

Article author

@adegeo

Metadata

  • ID: 327f5330-9be0-25fe-1e75-3673f7809d0d
  • PlatformId: 16950b17-b581-c2c6-3825-a45465ac0617
  • Service: dotnet-fundamentals
  • Sub-service: install

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions