Open gitfool opened 4 years ago
Cannot be done as netstandard2.0 - needed to be targeted to concrete versions o framework - done in #83
The last a version that targets netstandard2 is Powershell 6.1.2 but that version doesn't come with the OS, like framework does.
If the draw to framework is that it comes with a base OS install then you would want a netstandard version that targets 'PSVersion 5.1.19041.4170' as that is the current version shipped with Win10.
I would recommend having separate versions for PowerShell5\netstandard and latest\latest. If you're requiring a PowerShell7 be installed then you can also require net8.
Given a
netstandard2.0
TFM we should be able to run scripts usingdotnet cake
.~I'll have a crack and submit a PR...~ this is trickier than I thought due to its dependencies.