Get nuget and fix tools restore

This commit is contained in:
Victor Hurdugaci 2016-02-28 11:16:32 -08:00
Родитель 052989a2d9
Коммит 11feff116b
2 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -55,7 +55,12 @@ else
if (!(Test-Path "$koreBuildFolder\Sake"))
{
&dotnet restore "$koreBuildFolder\project.json" --packages "$koreBuildFolder" -f https://www.myget.org/F/dnxtools/api/v3/index.json -v Minimal
$toolsProject = "$koreBuildFolder\project.json"
&dotnet restore "$toolsProject" --packages "$koreBuildFolder" -v Minimal
# Rename the project after restore because we don't want it to be restore afterwards
mv "$toolsProject" "$toolsProject.norestore"
# We still nuget because dotnet doesn't have support for pushing packages
Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile "$koreBuildFolder/nuget.exe"
}
$makeFilePath = "makefile.shade"

6
build/Nuget.Config Normal file
Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="dnx-tools" value="https://www.myget.org/F/dnxtools/api/v3/index.json" />
</packageSources>
</configuration>