【发布时间】:2015-02-22 05:50:56
【问题描述】:
我想在不指定 -Version 开关的情况下使用 PowerShell 2 作为 Windows 8 上的默认 PowerShell 版本。
我开始使用 PowerShell 3 附带的 Windows 8 RTM,但我的脚本与 PowerShell 3 不兼容。
【问题讨论】:
-
请问有什么不兼容的地方?到目前为止,我的印象是他们非常重视向后兼容性。
-
我继承了一个托管 powershell 的应用程序。现在在 powershell 2 中有一个关于 PipelineResultTypes 错误的错误 |已在 Powershell 3 中解决的输出。该应用程序使用了解决方法来解决此错误。 powershell 3 中的修复程序现在破坏了嵌入在应用程序中的脚本。
-
尝试在 Windows 8 RTM 上的 VS 2012 RTM 中安装 NuGet 包时出现此错误:
T4Scaffolding and MvcScaffolding currently do not support preview versions of PowerShell 3 -
@LenielMacaferi 我正在使用 MVC 脚手架的自定义分支 (mvcscaffolding.codeplex.com/SourceControl/network/forks/shalter/…) 在 Windows 8 机器上使用脚手架。能帮到你吗?