From 3a483aa0fe44f14810fcb110c766c45c0128a906 Mon Sep 17 00:00:00 2001 From: Francois Dubois Date: Mon, 2 Aug 2021 10:49:23 -0400 Subject: [PATCH] Fix powershell build: Remove nuget cert revocation check --- powershell/build.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/powershell/build.ps1 b/powershell/build.ps1 index cc20f10fe..6556fba4e 100644 --- a/powershell/build.ps1 +++ b/powershell/build.ps1 @@ -15,6 +15,8 @@ New-Item -Path "$PSModuleOutputPath\$ModuleName" -ItemType 'Directory' -Force | New-Item -Path "$PSModuleOutputPath\$ModuleName\$_" -ItemType 'Directory' -Force | Out-Null } +$Env:NUGET_CERT_REVOCATION_MODE='offline' + & dotnet nuget add source "https://api.nuget.org/v3/index.json" -n "nuget.org" | Out-Null & dotnet publish "$PSScriptRoot\$ModuleName\src" -f netstandard2.0 -c Release -o "$PSScriptRoot\$ModuleName\bin"