Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# PowerShell脚本无法执行-服务结构_C#_Visual Studio_Powershell_Deployment_Azure Service Fabric - Fatal编程技术网

C# PowerShell脚本无法执行-服务结构

C# PowerShell脚本无法执行-服务结构,c#,visual-studio,powershell,deployment,azure-service-fabric,C#,Visual Studio,Powershell,Deployment,Azure Service Fabric,我正在尝试构建Service Fabric项目,但收到“PowerShell脚本无法执行”错误消息 我以管理员身份运行Visual Studio 2017 Enterprise(15.9.5) 我已尝试按照建议运行以下PS代码,但没有解决问题: Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser 如错误全文所示,我尝试在“输出”选项卡的Service Fabric Tools区域中查找任何其他信

我正在尝试构建Service Fabric项目,但收到“PowerShell脚本无法执行”错误消息

我以管理员身份运行Visual Studio 2017 Enterprise(15.9.5)

我已尝试按照建议运行以下PS代码,但没有解决问题:

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
如错误全文所示,我尝试在“输出”选项卡的Service Fabric Tools区域中查找任何其他信息,但没有发现任何信息:

PowerShell脚本无法执行。有关详细信息,请参见输出窗口中的Service Fabric Tools窗格


我很乐意提供任何有助于解决此问题的信息,因为我在任何地方都找不到解决此问题的任何方法。

在此处下载独立软件包:然后运行CleanServiceFabric.ps1以清除以前的SF部署。然后看看是否可以部署cluster@Micah_MSFT,谢谢你的回复。你是说“CleanFabric.ps1”脚本吗?我在存档文件中的任何位置都看不到“CleanServiceFabric.ps1”脚本。是,抱歉,cleanfract.ps1:)