Skip to content

Commit

Permalink
Lock NuGet version to v4.1.0 (#2809)
Browse files Browse the repository at this point in the history
* lock nuget down to v4.1.0

* revert build.cmd

* commit NuGet.exe v4.1.0
  • Loading branch information
heynickc authored and Aaronontheweb committed Jun 28, 2017
1 parent 429ff38 commit 3db851e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ FakesAssemblies/
/src/.Akka.boltdata/TestResults.json
resetdev.bat
/src/packages/repositories.config
/src/.nuget
/src/.nuget/NuGet.exe

# FAKE build folder
.fake/
Expand Down
7 changes: 1 addition & 6 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/v4.1.0/nuget.exe' -OutFile '%CACHED_NUGET%'"

:copynuget
IF EXIST src\.nuget\nuget.exe goto restore
Expand All @@ -17,13 +17,8 @@ copy %CACHED_NUGET% src\.nuget\nuget.exe > nul

:restore

src\.nuget\NuGet.exe update -self


pushd %~dp0

src\.nuget\NuGet.exe update -self

src\.nuget\NuGet.exe install FAKE -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages -ExcludeVersion -Version 4.16.1

src\.nuget\NuGet.exe install NUnit.Console -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages\FAKE -ExcludeVersion -Version 3.2.1
Expand Down
7 changes: 1 addition & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ popd > /dev/null

if ! [ -f $SCRIPT_PATH/src/.nuget/nuget.exe ]
then
wget "https://www.nuget.org/nuget.exe" -P $SCRIPT_PATH/src/.nuget/
wget "https://dist.nuget.org/win-x86-commandline/v4.1.0/nuget.exe" -P $SCRIPT_PATH/src/.nuget/
fi

mono $SCRIPT_PATH/src/.nuget/nuget.exe update -self


SCRIPT_PATH="${BASH_SOURCE[0]}";
if ([ -h "${SCRIPT_PATH}" ]) then
while([ -h "${SCRIPT_PATH}" ]) do SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done
Expand All @@ -25,8 +22,6 @@ cd `dirname ${SCRIPT_PATH}` > /dev/null
SCRIPT_PATH=`pwd`;
popd > /dev/null

mono $SCRIPT_PATH/src/.nuget/nuget.exe update -self

mono $SCRIPT_PATH/src/.nuget/nuget.exe install FAKE -OutputDirectory $SCRIPT_PATH/src/packages -ExcludeVersion -Version 4.61.3

mono $SCRIPT_PATH/src/.nuget/nuget.exe install xunit.runner.console -OutputDirectory $SCRIPT_PATH/src/packages/FAKE -ExcludeVersion -Version 2.0.0
Expand Down
Binary file added src/.nuget/nuget.exe
Binary file not shown.

0 comments on commit 3db851e

Please sign in to comment.