Skip to content

Compute SdkAnalysisLevel Property at the beginning of the SDK Targets#37778

Closed
baronfel wants to merge 1 commit intodotnet:mainfrom
baronfel:sdkanalysislevel
Closed

Compute SdkAnalysisLevel Property at the beginning of the SDK Targets#37778
baronfel wants to merge 1 commit intodotnet:mainfrom
baronfel:sdkanalysislevel

Conversation

@baronfel
Copy link
Copy Markdown
Member

@baronfel baronfel commented Jan 4, 2024

This is a companion PR to dotnet/designs#308 to help bring clarity to the design doc.

It defines the SdkAnalysisLevel at the .NET Sdk.targets, basing it off of the major.minor.featureband of the current SDK when no user-defined value is present.

Future work should add validation of this value during the beginning of execution to prevent invalid values from permeating through the system.

@ghost ghost added Area-NetSDK untriaged Request triage from a team member labels Jan 4, 2024
@baronfel baronfel requested a review from a team January 9, 2024 19:15
@baronfel baronfel changed the title Compute SdkAnalysisProperty at the beginning of the SDK Targets Compute SdkAnalysisLevel Property at the beginning of the SDK Targets Jan 12, 2024
@marcpopMSFT marcpopMSFT requested a review from joeloff January 16, 2024 21:38
@joeloff
Copy link
Copy Markdown
Member

joeloff commented Jan 16, 2024

The SDK folder contains both a .toolset and .version file, in the root SDK folder and they contain the following information in case that is useful.

.toolsetversion:

3f5d0be2f51d49013230c45b5a9a6dad582f40f3
6.0.126-servicing.23605.37
win-x64

.version

06a93b906c5570bbbdc1a446b4a203d598202c39
6.0.126
win-x64

@baronfel
Copy link
Copy Markdown
Member Author

Looking at the files in the 8.0.1xx SDKs I have installed, I see the following:

6eceda187bfd6e063bc320a37e52aad7c77c3b5b
8.0.101
win-x64
8.0.101-servicing.23580.17

The second line is the closest thing to what we want here, but we'd still have to do math on it in the same way this PR does to actually get the feature band for this SDK. Should we emit a file with the 'feature band' somewhere?

@joeloff
Copy link
Copy Markdown
Member

joeloff commented Jan 16, 2024

Should we store it in the bundled versions props file maybe, precompute at build time in the installer repo instead?

@baronfel
Copy link
Copy Markdown
Member Author

Closing this in favor of dotnet/installer#18687 and a soon-to-be-opened SDK PR to read that value from the props.

@baronfel baronfel closed this Feb 15, 2024
@baronfel baronfel deleted the sdkanalysislevel branch February 15, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-NetSDK untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants