mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Pin version of netDumbster to 2.0.0.4 (#9748)
This commit is contained in:
committed by
Travis Plunk
parent
61c7b7f120
commit
ead353e5e4
@@ -6,7 +6,7 @@ if(-not ("netDumbster.smtp.SimpleSmtpServer" -as [type]))
|
||||
Register-PackageSource -Name nuget.org -Location https://api.nuget.org/v3/index.json -ProviderName NuGet -ErrorAction SilentlyContinue
|
||||
|
||||
$nugetPackage = "netDumbster"
|
||||
Install-Package -Name $nugetPackage -ProviderName NuGet -Scope CurrentUser -Force -Source 'nuget.org'
|
||||
Install-Package -Name $nugetPackage -ProviderName NuGet -Scope CurrentUser -Force -Source 'nuget.org' -RequiredVersion 2.0.0.4
|
||||
|
||||
$dll = "$(Split-Path (Get-Package $nugetPackage).Source)\lib\netstandard2.0\netDumbster.dll"
|
||||
Add-Type -Path $dll
|
||||
|
||||
Reference in New Issue
Block a user