相关疑难解决方法(0)

Powershell'不被识别为内部或外部命令,可操作程序或批处理文件

我正在尝试运行powershell -Command来执行一个powershell文件作为Visual Studio 2013中的后期构建事件但是我得到了
Powershell' is not recognized as an internal or external command, operable program or batch file

输出窗口和错误

Powershell -Command exited with code 9009 error
Run Code Online (Sandbox Code Playgroud)

完整错误消息:

'Powershell' is not recognized as an internal or external command,
10>  operable program or batch file.
10>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: The command "echo "C:\dev\tfs\Main\Shared\AggregationComponents\GenerateSchema.cmd"
10>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: call "C:\dev\tfs\Main\Shared\AggregationComponents\GenerateSchema.cmd"
10>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: echo "Move the PhoenixData namespace schema suffixing it"
10>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4429,5): error MSB3073: Powershell -Command …
Run Code Online (Sandbox Code Playgroud)

windows powershell visual-studio-2013

30
推荐指数
2
解决办法
6万
查看次数

标签 统计

powershell ×1

visual-studio-2013 ×1

windows ×1