Skip to content

Change the calculation of the TFM for Cake addins #116

Closed
@nils-a

Description

@nils-a

In versions up until Cake 1.0.0 we has only one rule for TargetFramework.

In current development, there is three of them:

  • addins referencing Cake < 1.0.0: netstandard2.0 (required) and net461 (suggested)
  • addins referencing Cake ≥ 1.0.0: netstandard2.0 (required) and net461 (suggested) and net5.0 (suggested)
  • modules: netstandard2.0 (required)
  • recipes: no required or suggested references

Currently for addins not referencing Cake (Core or Common) the same rule as for Cake < 1.0.0 is selected.

@Jericho asked in #107

Why are the targeting rules different depending on whether an addin targets Cake.Core or not? Shouldn't we be consistent and always make the same recommendation?

And my reply was

Currently the rule defaults to the "lowest" requirement - in this case that is the "Cake < 1.0.0"-rule. We could argue, that since Cake 1.0.0 is now the default, the default-rule should be the "Cake ≥ 1.0.0"-rule.

The question is: Does someone have other ideas, or opinions on this? I really don't have a strong opinion on this, the way it is currently implemented was only the first thing that came to my mind when implementing this.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions