Skip to content

Commit

Permalink
Update package-console-powershell-cheat-sheet.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvenga committed Apr 17, 2017
1 parent 92e9280 commit 1afb7ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion input/posts/package-console-powershell-cheat-sheet.md
Expand Up @@ -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
```
Expand All @@ -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.