Sdk: Make _TargetFrameworkVersionWithoutV public

Created on 24 Oct 2018  路  3Comments  路  Source: dotnet/sdk

Building logic on top of the target framework version is super helpful, but it would be easier if _TargetFrameworkVersionWithoutV was public. current logic only duplicates it. It is super small (.TrimStart('vV')) and should be exposed publicly.
Mabe we can find a better name but that's irrelevant. Having something to compare against is helpful in custom build targets.

Is this reasonable to do?

Most helpful comment

We've been talking (https://github.com/Microsoft/msbuild/issues/3212#issuecomment-413956874) about introducing a new MSBuild version-comparison function that would ignore leading [vV]. Would that be enough for your needs?

All 3 comments

We've been talking (https://github.com/Microsoft/msbuild/issues/3212#issuecomment-413956874) about introducing a new MSBuild version-comparison function that would ignore leading [vV]. Would that be enough for your needs?

Hellz yes.

More comparison functions are great but having something that is easy to understand and use would also be great..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srivatsn picture srivatsn  路  3Comments

joffreykern picture joffreykern  路  3Comments

srayuws picture srayuws  路  3Comments

gkhanna79 picture gkhanna79  路  3Comments

clairernovotny picture clairernovotny  路  3Comments