Install .NET Core Runtime & Hosting Version 3.1 -error

Copper Contributor

i am trying to run release pipeline in azure devops by using azure virtual machine.iam deploying dot net core project.when i running release pipe line i got below error 

Install .NET Core Runtime & Hosting Version 3.1
Exit code -1073741571 returned from process: file name 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe', arguments '-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". ([scriptblock]::Create('if ([Console]::InputEncoding -is [Text.UTF8Encoding] -and [Console]::InputEncoding.GetPreamble().Length -ne 0) { [Console]::InputEncoding = New-Object Text.UTF8Encoding $false } if (!$PSHOME) { $null = Get-Item -LiteralPath ''variable:PSHOME'' } else { Import-Module -Name ([System.IO.Path]::Combine($PSHOME, ''Modules\Microsoft.PowerShell.Management\Microsoft.PowerShell.Management.psd1'')) ; Import-Module -Name ([System.IO.Path]::Combine($PSHOME, ''Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psd1'')) }')) 2>&1 | ForEach-Object { Write-Verbose $_.Exception.Message -Verbose } ; Import-Module -Name 'C:\azagent\A2\_work\_tasks\InstallNetCoreRuntimeAndHosting_232044c0-f2b9-4a68-895c-84c988472d6e\1.3.2\ps_modules\VstsTaskSdk\VstsTaskSdk.psd1' -ArgumentList @{ NonInteractive = $true } -ErrorAction Stop ; $VerbosePreference = 'SilentlyContinue' ; $DebugPreference = 'SilentlyContinue' ; Invoke-VstsTaskScript -ScriptBlock ([scriptblock]::Create('. ''C:\azagent\A2\_work\_tasks\InstallNetCoreRuntimeAndHosting_232044c0-f2b9-4a68-895c-84c988472d6e\1.3.2\task.ps1'''))"'.
0 Replies