[英]Start VS2012 Package Manager Console from Powershell Command Prompt
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作为管理员。
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.
看一下dotPeek中的NuGet.Console.dll,很明显它在Visual Studio对象模型中有很多必需的钩子。 Plus, the actual console itself is a WPF UserControl and not a console subsystem app.
另外,实际的控制台本身是WPF UserControl,而不是控制台子系统应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.