Visual Studio 中的 Powershell

发布于 2024-08-06 06:22:55 字数 116 浏览 1 评论 0原文

有谁知道我可以在 Visual Studio 中运行 powershell 的方法吗?

我的意思是,在工具窗口中有一个交互式 powershell 提示符吗?

善良,

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

标点 2024-08-13 06:22:55

NuGet 包管理器 有一个 NuGet 包管理器。 nuget.org/docs/start-here/using-the-package-manager-console" rel="noreferrer">NuGet 包管理器控制台,它是一个 PowerShell 主机。单击工具 > 打开控制台库包管理器 > 包管理器控制台

当您安装 ASP.NET MVC 3 时,包管理器会自动安装在 Visual Studio 2010 中。您可以使用 Microsoft Web 平台安装程序 安装 ASP.NET MVC 3。您还可以使用 Visual Studio 扩展管理器安装 NuGet。

引用自 ASP.NET 网站:

ASP.NET MVC 3 会在其安装过程中自动安装并启用 NuGet。 NuGet 是一个免费的开源包管理器,可让您在项目中轻松查找、安装和使用 .NET 库和工具。 —http://www.asp.net/mvc/mvc3#overview

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

耳根太软 2024-08-13 06:22:55

有两个非常有趣的项目可用:

查看它们,它们将满足您的所有需求:-)

There are two very interesting project available:

Check them out, together they will fulfill all you needs:-)

握住我的手 2024-08-13 06:22:55

查看适用于 Visual Studio 的 PowerShell 工具。它在 Visual Studio 2012 和 2013 中添加了对 PowerShell 的语言支持。

Check Out PowerShell Tools for Visual Studio. It adds language support for PowerShell in Visual Studio 2012 and 2013.

电影里的梦 2024-08-13 06:22:55

导航至查看 ->终端。

Navigate to View -> Terminal.

心舞飞扬 2024-08-13 06:22:55

我使用 nuget 包管理器控制台,因为它已经作为 nuget 的一部分安装在我的 IDE 中。

如果您使用配置文件来设置会话环境,请注意 Nuget 配置文件脚本名称为“NuGet_profile.ps1”,默认位于 $Home\documents\WindowsPowerShell 中,

在 Visual Studio 中使用 PS 时需要注意的一件事:VS(当前)是 32 位应用程序,因此您将无法加载或调用任何 64 位 PS 模块的功能 - 例如 SqlServerManagementModules

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文