简体   繁体   English

从Powershell命令提示符启动VS2012包管理器控制台

[英]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.

相关问题 在VS2012包管理器控制台中终止进程 - Kill Process in VS2012 Package Manager Console 没有PowerShell访问权限的Package Manager控制台命令 - Package Manager console command without PowerShell access 有没有一种方法可以使VS Package Manager命令在Powershell控制台上可用? - Is there a way to make the VS Package Manager commands available on Powershell Console? 在Visual Studio Nuget包管理器控制台中中止“unclosed”powershell命令 - Aborting an “unclosed” powershell command in Visual Studio Nuget Package manager console 程序包管理器控制台上的PowerShell版本 - PowerShell Version on Package Manager Console 从程序包管理器控制台添加自定义nuget源(PowerShell) - Add custom nuget feed from the Package Manager Console (PowerShell) Powershell包含在Visual Studio中的程序包管理器控制台中的项目中 - Powershell Include In Project From Package Manager Console In Visual Studio 从Powershell到命令提示符调用CSVDE的差异 - Differences in calling CSVDE from Powershell vs Command Prompt 从命令行/程序包管理器/ PowerShell控制Visual Studio 2017 - Control Visual Studio 2017 from command line/package manager/powershell NuGet包管理器控制台无法加载PowerShell - NuGet Package Manager Console unable to load PowerShell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM