PowerShell in VS2013

The Package Manager Console is an instance of PowerShell in a tool window.

You can get your full PowerShell environment by  manually running your startup script:
> cd $env:Home\Documents\WindowsPowerShell  # you may need to use $env:USERPROFILE
> . Microsoft.PowerShell_profile.ps1
(Of course, use the name of your startup script…)

I use posh-git with PowrShell, and now I have that in VS2013:
pkgMgrConsole

(I suspect this would work in VS2012, but I haven’t tried it.)

UPDATE:  To load your startup script automatically, you need to find the script that the Package Manager Console first loads.  I found a file named “Profile.ps1” in “C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\t15jiici.0ox\Modules\NuGet”.

In Profile.ps1, I added:
. C:\Users\Charles\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? * Time limit is exhausted. Please reload CAPTCHA.

Protected with IP Blacklist CloudIP Blacklist Cloud