Permalink
Browse files

Update package-console-powershell-cheat-sheet.md

  • Loading branch information...
Silvenga committed Apr 17, 2017
1 parent 92e9280 commit 1afb7ad55093709b5229905475da82e86e0c427b
Showing with 6 additions and 1 deletion.
  1. +6 −1 input/posts/package-console-powershell-cheat-sheet.md
@@ -10,6 +10,11 @@ A cheat sheet of all the cool things that knowing PowerShell can help with when
Get-Package -ProjectName {From Project} | Install-Package -ProjectName {Target Project} -IgnoreDependencies
```
> Same as above, but if you care about versions
```
Get-Package -ProjectName {From Project} | % { Install-Package -ProjectName {Target Project} -IgnoreDependencies -Version $_.Version.ToString() $_.Id }
```
> Batch install packages
```
@@ -26,4 +31,4 @@ Get-Project -All | Install-Package Microsoft.Net.Compilers
```
Get-Package -Updates | ?{$_.Id -ne "refit"} | Update-Package
```
```

0 comments on commit 1afb7ad

Please sign in to comment.