Skip to content

Parse SdkFeatureBand from .version file#38802

Merged
baronfel merged 1 commit intodotnet:mainfrom
baronfel:read-featureband-from-versions-txt
Feb 15, 2024
Merged

Parse SdkFeatureBand from .version file#38802
baronfel merged 1 commit intodotnet:mainfrom
baronfel:read-featureband-from-versions-txt

Conversation

@baronfel
Copy link
Member

Companion to dotnet/installer#18687 - this parses the feature band that's now written to that file so that we can use it inside the SDK if required.

@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Feb 15, 2024
@baronfel baronfel force-pushed the read-featureband-from-versions-txt branch from 844d840 to 8e02a3e Compare February 15, 2024 17:00
@baronfel baronfel requested a review from joeloff February 15, 2024 17:00
@baronfel
Copy link
Member Author

@joeloff here's the matching parsing side of the Installer PR.

Comment on lines +8 to +27
public bool Exists { get; init; }

public string CommitSha { get; set; }
public string CommitSha { get; init; }

public string BuildNumber { get; set; }
public string BuildNumber { get; init; }

public string FullNugetVersion { get; init; }

public string SdkFeatureBand { get; init; }

/// <summary>
/// The runtime identifier (rid) that this CLI was built for.
/// </summary>
/// <remarks>
/// This is different than RuntimeInformation.RuntimeIdentifier because the
/// This is different than RuntimeInformation.RuntimeIdentifier because the
/// BuildRid is a RID that is guaranteed to exist and works on the current machine. The
/// RuntimeInformation.RuntimeIdentifier may be for a new version of the OS that
/// RuntimeInformation.RuntimeIdentifier may be for a new version of the OS that
/// doesn't have full support yet.
/// </remarks>
public string BuildRid { get; set; }
public string BuildRid { get; init; }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the opportunity to make these init-only properties while I was here (though this required making the small polyfill for net472).

@baronfel baronfel enabled auto-merge (squash) February 15, 2024 18:05
@baronfel baronfel merged commit eb4b187 into dotnet:main Feb 15, 2024
@baronfel baronfel deleted the read-featureband-from-versions-txt branch February 15, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants