The PowerShell script failed to execute - ServiceFabric

邮差的信 提交于 2020-01-03 03:11:07

问题


I'm new to Service Fabric, and I have difficulties deploying a Service Fabric project to my local cluster. I keep getting the error: The PowerShell script failed to execute

I search for this error, and I read that Visual Studio must be opened as Administrator. I run it as Administrator, so this is not a problem.

I run this command in PowerShell

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser

but it does not resolve the problem. I keep getting the error with PowerShell script; it's failing on execute. Can you advise?


回答1:


Try copy and pasting the script directly into powershell. If it doesn't work you might get a more detailed reason



来源:https://stackoverflow.com/questions/51784197/the-powershell-script-failed-to-execute-servicefabric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!