This repository was archived by the owner on Nov 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<configuration >
3
3
<packageSources >
4
- <add key =" AspNetVNext" value =" https://www.myget.org/F/aspnetlitedev /api/v2 " />
4
+ <add key =" AspNetVNext" value =" https://www.myget.org/F/aspnetcidev /api/v3/index.json " />
5
5
<add key =" NuGet" value =" https://api.nuget.org/v3/index.json" />
6
6
</packageSources >
7
7
</configuration >
Original file line number Diff line number Diff line change 2
2
cd %~dp0
3
3
4
4
SETLOCAL
5
- SET CACHED_NUGET = %LocalAppData% \NuGet\NuGet.exe
5
+ SET NUGET_VERSION = latest
6
+ SET CACHED_NUGET = %LocalAppData% \NuGet\nuget.%NUGET_VERSION% .exe
6
7
SET BUILDCMD_KOREBUILD_VERSION = " "
7
8
SET BUILDCMD_DNX_VERSION = " "
8
9
9
10
IF EXIST %CACHED_NUGET% goto copynuget
10
11
echo Downloading latest version of NuGet.exe...
11
12
IF NOT EXIST %LocalAppData% \NuGet md %LocalAppData% \NuGet
12
- @ powershell -NoProfile -ExecutionPolicy unrestricted -Command " $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www .nuget.org/nuget.exe' -OutFile '%CACHED_NUGET% '"
13
+ @ powershell -NoProfile -ExecutionPolicy unrestricted -Command " $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://dist .nuget.org/win-x86-commandline/ %NUGET_VERSION% /nuget.exe' -OutFile '%CACHED_NUGET% '"
13
14
14
15
:copynuget
15
16
IF EXIST .nuget\nuget.exe goto restore
@@ -19,11 +20,11 @@ copy %CACHED_NUGET% .nuget\nuget.exe > nul
19
20
:restore
20
21
IF EXIST packages\KoreBuild goto run
21
22
IF %BUILDCMD_KOREBUILD_VERSION% == " " (
22
- .nuget\NuGet .exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
23
+ .nuget\nuget .exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
23
24
) ELSE (
24
- .nuget\NuGet .exe install KoreBuild -version %BUILDCMD_KOREBUILD_VERSION% -ExcludeVersion -o packages -nocache -pre
25
+ .nuget\nuget .exe install KoreBuild -version %BUILDCMD_KOREBUILD_VERSION% -ExcludeVersion -o packages -nocache -pre
25
26
)
26
- .nuget\NuGet .exe install Sake -ExcludeVersion -Source https://www.nuget.org/api/v2/ -Out packages
27
+ .nuget\nuget .exe install Sake -ExcludeVersion -Out packages
27
28
28
29
IF " %SKIP_DNX_INSTALL% " == " 1" goto run
29
30
IF %BUILDCMD_DNX_VERSION% == " " (
Original file line number Diff line number Diff line change 10
10
fi
11
11
fi
12
12
mkdir -p $cachedir
13
+ nugetVersion=latest
14
+ cachePath=$cachedir /nuget.$nugetVersion .exe
13
15
14
- url=https://www .nuget.org/nuget.exe
16
+ url=https://dist .nuget.org/win-x86-commandline/ $nugetVersion /nuget.exe
15
17
16
- if test ! -f $cachedir /nuget.exe ; then
17
- wget -O $cachedir /nuget.exe $url 2> /dev/null || curl -o $cachedir /nuget.exe --location $url /dev/null
18
+ if test ! -f $cachePath ; then
19
+ wget -O $cachePath $url 2> /dev/null || curl -o $cachePath --location $url /dev/null
18
20
fi
19
21
20
22
if test ! -e .nuget; then
21
23
mkdir .nuget
22
- cp $cachedir /nuget.exe .nuget/nuget.exe
24
+ cp $cachePath .nuget/nuget.exe
23
25
fi
24
26
25
27
if test ! -d packages/KoreBuild; then
26
28
mono .nuget/nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
27
- mono .nuget/nuget.exe install Sake -ExcludeVersion -Source https://www.nuget.org/api/v2/ - Out packages
29
+ mono .nuget/nuget.exe install Sake -ExcludeVersion -Out packages
28
30
fi
29
31
30
32
if ! type dnvm > /dev/null 2>&1 ; then
You can’t perform that action at this time.
0 commit comments