Cake.Powershell icon indicating copy to clipboard operation
Cake.Powershell copied to clipboard

Change target frameworks to net461 and netstandard2.0

Open gitfool opened this issue 5 years ago • 2 comments

Given a netstandard2.0 TFM we should be able to run scripts using dotnet cake.

~I'll have a crack and submit a PR...~ this is trickier than I thought due to its dependencies.

gitfool avatar Oct 28 '20 22:10 gitfool

Cannot be done as netstandard2.0 - needed to be targeted to concrete versions o framework - done in #83

AdaskoTheBeAsT avatar Feb 25 '21 17:02 AdaskoTheBeAsT

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.

A9G-Data-Droid avatar Apr 03 '24 15:04 A9G-Data-Droid