You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting in .NET 8, an new tagging scheme will be used for the MS-authored .NET containers. The details of this scheme can be found here.
Our inference rules need to update to match this scheme. It would be simplest to just apply the 8.0-preview/8.0 portions of the new scheme, but I think we can be slightly more precise. Since the rules are getting slightly more complex, I think we should extract the inference out to a dedicated Task and implement the more granular set of rules - locating the appropriate 8.0-preview.N, 8.0-rc.N, and 8.0 tags as appropriate. We'd need to start parsing SemVers in order to do this but that isn't a particularly huge task.
We may be able to not have to parse actual semvers, since the value passed to the task will be a trusted string. The logic could be
if SDK Version does not contain -, then the tag should be 'MAJOR.minor'
if the SDK Version does contain -, then check the 'MAJOR.minor'
if MAJOR <= 7, then tag should be MAJOR.minor
if MAJOR > 7, then investigate the alpha part right after the -, and the numeric part right after that
if first alpha part is 'rc', then tag should be 'MAJOR.minor-rc.NUMERIC_PART'
if first alpha part is 'preview' then tag should be 'MAJOR.minor-preview.NUMERIC_PART'
The text was updated successfully, but these errors were encountered:
A few more caveats to the algorithm - I think we'll need the following inputs:
TFM version (6.0, 7.0, 8.0, etc)
SDK version
if the TFM major is < 8, then nothing changes - the tag is always MAJOR.MINOR
if the TFM major is >= 8, then we have to do the SDK version checks mentioned above, where we take into account the 'channel' and 'channel bump'.
Starting in .NET 8, an new tagging scheme will be used for the MS-authored .NET containers. The details of this scheme can be found here.
Our inference rules need to update to match this scheme. It would be simplest to just apply the
8.0-preview
/8.0
portions of the new scheme, but I think we can be slightly more precise. Since the rules are getting slightly more complex, I think we should extract the inference out to a dedicated Task and implement the more granular set of rules - locating the appropriate8.0-preview.N
,8.0-rc.N
, and8.0
tags as appropriate. We'd need to start parsing SemVers in order to do this but that isn't a particularly huge task.We may be able to not have to parse actual semvers, since the value passed to the task will be a trusted string. The logic could be
-
, then the tag should be 'MAJOR.minor'-
, then check the 'MAJOR.minor'-
, and the numeric part right after thatThe text was updated successfully, but these errors were encountered: