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"