PowerShell脚本无法执行 - ServiceFabric

问题描述 投票:1回答:1

我是Service Fabric的新手,我很难将Service Fabric项目部署到本地群集。我一直收到错误:The PowerShell script failed to execute

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

我在PowerShell中运行此命令

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser

但它并没有解决问题。我一直在使用PowerShell脚本收到错误;它没有执行。你能建议吗?

powershell azure-service-fabric
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.