4 ms·
Alright, let's be fair here. If you have a sensible execution policy set which you basically have to the first time you use powershell it is only: Invoke-WebRe
by Taren 11y ago
Alright, let's be fair here. If you have a sensible execution policy set which you basically have to the first time you use powershell it is only:
Invoke-WebRequest https://dist.asp.net/dnvm/dnvminstall.ps1 https://dist.asp.net/dnvm/dnvminstall.ps1 | Invoke-Expression
or this for short:
iwr https://dist.asp.net/dnvm/dnvminstall.ps1 https://dist.asp.net/dnvm/dnvminstall.ps1 | iex
Also, the powershell package manager is quite nice. So far it is basically chocolatey for me but if there are some more it can handle in the future... https://github.com/OneGet/oneget/issues/77 https://github.com/OneGet/oneget/issues/77
- rylee 11y agoheh, the Microsoft curl|sh.
- Taren 11y agoYeah, they copied a lot of the syntax over. To the point that there is an alias for curl by default. Probably a good thing, though.
- manicgeek 11y agoYeah, unfortunately that nice clean syntax requires a fairly recent version of PowerShell so the code we actually use has to be a bit verbose for compat :) Source/Disclaimer: I work for the ASP.NET team