Skip to content

Commit 66cf8d8

Browse files
committed
Download the paket bootstrapper if missing
1 parent 8a41e25 commit 66cf8d8

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,4 @@ docs/html/
8080
packages
8181
paket.exe
8282
paket.lock
83+
paket.bootstrapper.exe

build/build.proj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<Version Condition=" '$(bamboo_GitVersion_NuGetVersion)' == '' ">0.0.0-dev</Version>
99

1010
<ILMerge>$(MSBuildThisFileDirectory.Replace('build\','src'))\packages\ILMerge.2.14.1208\tools\ILMerge.exe</ILMerge>
11+
<PaketVersion>2.66.9</PaketVersion>
1112
<PaketBootstrapper>$(MSBuildThisFileDirectory.Replace('build\','.paket'))\paket.bootstrapper.exe</PaketBootstrapper>
1213
<Paket>$(MSBuildThisFileDirectory.Replace('build\','.paket'))\paket.exe</Paket>
1314
<PackagesFolder>$(MSBuildThisFileDirectory.Replace('build\','packages'))</PackagesFolder>
@@ -42,7 +43,7 @@
4243
<Exec Command="(set SHFBROOT=$(SHFBROOT)) &amp; $(MSBuild) ..\src\Documentation\Documentation.sln /p:Configuration=$(Configuration) /nologo /v:minimal" />
4344
</Target>
4445

45-
<Target Name="RestorePackages">
46+
<Target Name="RestorePackages" DependsOnTargets="DownloadPaket">
4647
<Exec Command="$(PaketBootstrapper)" />
4748
<Exec Command="$(Paket) install" />
4849
</Target>
@@ -52,6 +53,11 @@
5253
<Exec Command="@powershell -NoProfile -ExecutionPolicy unrestricted -Command &quot;$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '$(NuGet)'&quot;" />
5354
</Target>
5455

56+
<Target Name="DownloadPaket" Condition="!Exists('$(PaketBootstrapper)')">
57+
<Exec Command="@powershell -NoProfile -ExecutionPolicy unrestricted -Command &quot;$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://github.com/fsprojects/Paket/releases/download/$(PaketVersion)/paket.bootstrapper.exe' -OutFile '$(PaketBootstrapper)'&quot;" />
58+
<Exec Command="..\.paket\paket.bootstrapper.exe $(PaketVersion)" />
59+
</Target>
60+
5561
<Target Name="UnitTest" DependsOnTargets="Build">
5662
<PropertyGroup>
5763
<MSTest Condition=" '$(VS140COMNTOOLS)' != '' ">&quot;$(VS140COMNTOOLS)..\IDE\MSTest.exe&quot;</MSTest>

0 commit comments

Comments
 (0)