From ad1ad9e87965f23b5821216affb906aff63fe5da Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Wed, 21 Mar 2018 16:40:34 -0700 Subject: [PATCH] Fix RestoreSources for optdata packages Pass unprocessed args to restore optdata step so it can override the sources when doing restore Handle prority as an unprocessed arg for the sync alias --- build.cmd | 2 +- build.proj | 11 +++++------ build.sh | 2 +- config.json | 8 +++++++- src/.nuget/optdata/nuget.config | 6 ------ src/.nuget/optdata/optdata.csproj | 8 -------- 6 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 src/.nuget/optdata/nuget.config diff --git a/build.cmd b/build.cmd index 889a196..a83e111 100644 --- a/build.cmd +++ b/build.cmd @@ -337,7 +337,7 @@ REM ============================================================================ if %__RestoreOptData% EQU 1 if %__BuildTypeRelease% EQU 1 ( echo %__MsgPrefix%Restoring the OptimizationData Package - @call %__ProjectDir%\run.cmd sync -optdata + @call %__ProjectDir%\run.cmd sync -optdata %__UnprocessedBuildArgs% if not !errorlevel! == 0 ( echo %__MsgPrefix%Error: Failed to restore the optimization data package. exit /b 1 diff --git a/build.proj b/build.proj index eabe0e5..bbec187 100644 --- a/build.proj +++ b/build.proj @@ -28,12 +28,11 @@ - "$(DotnetToolCommand)" - $(OptDataRestoreCommand) restore - $(OptDataRestoreCommand) --packages "$(PackagesDir.TrimEnd('/').TrimEnd('\'))" + <_OptimizationDataFeed Condition="'$(DotNetBuildOffline)' != 'true'">--source https://dotnet.myget.org/F/dotnet-core-optimization-data/api/v3/index.json - + + - - - https://dotnet.myget.org/F/dotnet-core-optimization-data/api/v3/index.json; - $(RestoreSources) - - - -- 2.7.4