Skip to content

Commit f0238b5

Browse files
committed
Manually specify the dependency version numbers in chocolateyInstall.ps1
1 parent 56f2b3e commit f0238b5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/ScriptCs/Properties/chocolateyInstall.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010

1111
Write-Host "Retrieving NuGet dependencies..." -ForegroundColor DarkYellow
1212

13-
"NuGet.Core","Autofac.Mef","Roslyn.Compilers.CSharp","PowerArgs" | %{ .$nuget install $_ -o $nugetPath -nocache } | Out-Null
13+
$dependencies = @{
14+
"NuGet.Core" = "2.2.0";
15+
"Autofac.Mef" = "3.0.0";
16+
"Roslyn.Compilers.CSharp" = "1.2.20906.2";
17+
"PowerArgs" = "1.4.0.0";
18+
}
19+
20+
$dependencies.GetEnumerator() | %{ .$nuget install $_.Name -version $_.Value -o $nugetPath -nocache } | Out-Null
1421

1522
Get-ChildItem $nugetPath -Filter "*.dll" -Recurse | %{ Copy-Item $_.FullName $binPath -Force }
1623
Remove-Item $nugetPath -Recurse -Force

0 commit comments

Comments
 (0)