I am trying to run a powershell -Command to execute a powershell file as a post build event in Visual studio 2013
But i am getting
Powershell' is not recognized as an internal or external command, operable program or batch file
error on output window and
Powershell -Command exited with code 9009 error
Full Error Message:
'Powershell' is not recognized as an internal or external command,
10> operable program or batch file.
10>C:Program Files (x86)MSBuild12.0inMicrosoft.Common.CurrentVersion.targets(4429,5): error MSB3073: The command "echo "C:devfsMainSharedAggregationComponentsGenerateSchema.cmd"
10>C:Program Files (x86)MSBuild12.0inMicrosoft.Common.CurrentVersion.targets(4429,5): error MSB3073: call "C:devfsMainSharedAggregationComponentsGenerateSchema.cmd"
10>C:Program Files (x86)MSBuild12.0inMicrosoft.Common.CurrentVersion.targets(4429,5): error MSB3073: echo "Move the PhoenixData namespace schema suffixing it"
10>C:Program Files (x86)MSBuild12.0inMicrosoft.Common.CurrentVersion.targets(4429,5): error MSB3073: Powershell -Command "C:devfsMainSharedAggregationComponentsMoveAndRenameXsds.ps1 'C:devfsMainSharedAggregationComponentsinDebug' 'C:devfsMainSharedAggregationComponents..PublishedAnalyticsXsds' '.Aggregation'"" exited with code 9009.
========== Rebuild All: 8 succeeded, 1 failed, 1 skipped ==========
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…