Does anyone know of a way I can run a powershell within Visual Studio.
By that I mean, have an interactive powershell prompt in a tool window?
Kindness,
Dan
Does anyone know of a way I can run a powershell within Visual Studio.
By that I mean, have an interactive powershell prompt in a tool window?
Kindness,
Dan
The NuGet Package Manager has a NuGet Package Manager Console which is a PowerShell host. Open the console by clicking Tools > Library Package Manager > Package Manager Console.
The package manager is automatically installed in Visual Studio 2010 when you install ASP.NET MVC 3. You can install ASP.NET MVC 3 using the Microsoft Web Platform Installer. You can also install NuGet by using the Visual Studio Extension Manager.
Quoted from the ASP.NET web site:
ASP.NET MVC 3 automatically installs and enables NuGet as part of its setup. NuGet is a free open-source package manager that makes it easy to find, install, and use .NET libraries and tools in your projects. —http://www.asp.net/mvc/mvc3#overview
There are two very interesting project available:
A powershell command shell called Power Console: http://visualstudiogallery.msdn.microsoft.com/en-us/67620d8c-93dd-4e57-aa86-c9404acbd7b3
The integration of the PowerGui script editor (the best!) into Visual Studio: http://powerguivsx.codeplex.com/
Check them out, together they will fulfill all you needs:-)
Check Out PowerShell Tools for Visual Studio. It adds language support for PowerShell in Visual Studio 2012 and 2013.
I use the nuget package manager console as it's already installed in my IDE as part of nuget.
If you use a profile to set up your session environment, be aware that the Nuget profile script name is "NuGet_profile.ps1" located default in $Home\documents\WindowsPowerShell
One thing to be aware of when using PS in Visual Studio: VS is (currently) a 32 bit application and as such you will not be able to load or invoke the functionality of any 64 bit PS Modules - for instance the SqlServerManagementModules
© 2022 - 2024 — McMap. All rights reserved.