Skip to content

Update version comparison logic to be stable across releases #1545

Open

Description

This code should not need to be updated as new versions become available:

"Framework": {
"type": "bind",
"binding": "msbuild:TargetFramework",
"defaultValue": "net6.0"
},
"NetFramework": {
"type": "computed",
"datatype": "bool",
"value": "(Framework == \"net48\")"
},
"NetCore": {
"type": "computed",
"datatype": "bool",
"value": "(Framework == \"net6.0\" || Framework == \"net7.0\" || Framework == \"net8.0\" || Framework == \"net9.0\")"
},

This should instead parse the version and perform a comparison against the minimum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions