提交 114e7e87 编写于 作者: B Brett V. Forsgren

augment instead of replace the package source list when %PB_RestoreSource% is specified

上级 94c7fe1f
......@@ -572,7 +572,7 @@ if "%RestorePackages%" == "true" (
%_ngenexe% install %_nugetexe% /nologo
set _nugetoptions=-PackagesDirectory packages -ConfigFile %_nugetconfig%
if not "%PB_RESTORESOURCE%" == "" (
set _nugetoptions=!_nugetoptions! -Source %PB_RESTORESOURCE%
set _nugetoptions=!_nugetoptions! -FallbackSource %PB_RESTORESOURCE%
)
echo _nugetoptions=!_nugetoptions!
......
......@@ -450,7 +450,7 @@ if [ "${RestorePackages:-true}" = 'true' ]; then
_nugetoptions="-PackagesDirectory packages -ConfigFile $_nugetconfig"
if [ "$PB_RESTORESOURCE" != "" ]; then
_nugetoptions="$_nugetoptions -Source $PB_RESTORESOURCE"
_nugetoptions="$_nugetoptions -FallbackSource $PB_RESTORESOURCE"
fi
eval "$_nugetexe restore packages.config $_nugetoptions"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册