PowerShell Core should be available as a global tool so installing PowerShell for use in a build environment would be as simple as dotnet tool install pwsh
The 6.1 release notes say this is "coming soon" but it's been 3 months and as far as I can tell there is still no tool package for PSCore
/cc @joeyaiello @SteveL-MSFT
Work has started on this. However, @adityapatwardhan is currently on vacation. Perhaps we'll get it early next year.
In .Net Core 3.0 there is a _Local dotnet tools_.
https://github.com/dotnet/cli/issues/10288
Checking in on the status of this issue.
I see it's marked in the Future milestone but it was also marked as "soon" in the 6.1 release notes.
Work is on-going on this. Hopefully next month.
@SteveL-MSFT excellent
Is this going to make it into 6.2?
In all likelihood this will make it in 6.2
I see 6.2 is out now, did this make it in?
@jcotton42 There's some additional work needed before this is available as a dotnet global tool, but it's still happening. Probably in April.
@SteveL-MSFT is there any way I could contribute to that work? I'm pretty busy with school but might find time to help.
@jcotton42 I appreciate the offer, but it's not engineering work on our side that we're waiting on
Just looking at the latest .NET SDK 3.0 preview Dockerfiles it looks like it's installing PowerShell as a dotnet tool.
https://github.com/dotnet/dotnet-docker/blob/master/3.0/sdk/stretch/arm64v8/Dockerfile
@AceHack Nice observation, but not 100% correct. It is installing that nupkg as a dotnet tool, but "soon", you should just be able to do: dotnet tool install powershell without pre-downloading the nupkg.
PowerShell v6.2.2 has been released as a global tool. Please give it a try.
Most helpful comment
Work is on-going on this. Hopefully next month.