Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the NETSdkVersion to restore telemetry #6210

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Jan 7, 2025

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/3075

Description

Per the conversation in the issue, we need the NETSdkVersion to reason about usage of SdkAnalysisLevel and global.json for pinning the SDK version to previous behavior.

We're adding it to the ProjectRestoreSettings which are settings that are not part of the hashing since they don't really influence the restore behavior.
Note that the population of this property is only done in the SDK projects case in Visual Studio, since that's the only place where the data is relevant. We don't need it on the commandline in any scenario.

This PR is accompanied by dotnet/project-system#9627.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@nkolev92 nkolev92 marked this pull request as ready for review January 7, 2025 19:17
@nkolev92 nkolev92 requested a review from a team as a code owner January 7, 2025 19:17
@nkolev92 nkolev92 merged commit c4b2619 into dev Jan 7, 2025
23 of 24 checks passed
@nkolev92 nkolev92 deleted the dev-nkolev92-AddNetCoreSdkVersion branch January 7, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants