Is there a way to start the package manager console from either the powershell command prompt or the windows command window?
有没有办法从powershell命令提示符或Windows命令窗口启动包管理器控制台?
I have some commands I need to run as administrator, and would rather just run a powershell window as admin instead of shutting down and restarting VS2012 as admin.
我有一些我需要以管理员身份运行的命令,而宁愿只运行一个PowerShell窗口作为管理员而不是关闭并重新启动VS2012作为管理员。
1 个解决方案
#1
5
Richard is right. One look at NuGet.Console.dll in dotPeek and it is pretty clear it has a lot of required hooks into the Visual Studio object model. Plus, the actual console itself is a WPF UserControl and not a console subsystem app.
理查德是对的。看一下dotPeek中的NuGet.Console.dll,很明显它在Visual Studio对象模型中有很多必需的钩子。另外,实际的控制台本身是WPF UserControl,而不是控制台子系统应用程序。
#1
5
Richard is right. One look at NuGet.Console.dll in dotPeek and it is pretty clear it has a lot of required hooks into the Visual Studio object model. Plus, the actual console itself is a WPF UserControl and not a console subsystem app.
理查德是对的。看一下dotPeek中的NuGet.Console.dll,很明显它在Visual Studio对象模型中有很多必需的钩子。另外,实际的控制台本身是WPF UserControl,而不是控制台子系统应用程序。