PowerShell脚本执行失败

PowerShell脚本执行失败

本文介绍了PowerShell脚本执行失败-ServiceFabric的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Service Fabric的新手,并且在将Service Fabric项目部署到本地群集时遇到困难.我不断收到错误:The PowerShell script failed to execute

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

我搜索了此错误,并且我读到Visual Studio必须以管理员身份打开.我以管理员身份运行,所以这不是问题.

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.

我在PowerShell中运行此命令

I run this command in PowerShell

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser

,但不能解决问题.我通过PowerShell脚本不断收到错误;执行失败.你能建议吗?

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

推荐答案

尝试将脚本直接复制并粘贴到powershell中.如果它不起作用,您可能会得到更详细的原因

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

这篇关于PowerShell脚本执行失败-ServiceFabric的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 16:30