diff options
author | Wes Haggard <Wes.Haggard@microsoft.com> | 2018-03-21 16:40:34 -0700 |
---|---|---|
committer | Wes Haggard <Wes.Haggard@microsoft.com> | 2018-03-23 08:22:16 -0700 |
commit | 46f003fe2276e319f86d06b934aab9d57461a9f6 (patch) | |
tree | 64028a2506c5857897f247fc1bbb25ec7c5d690a /build.proj | |
parent | e431eb23fc21b773c17b96bb0f8189597d436b98 (diff) | |
download | coreclr-46f003fe2276e319f86d06b934aab9d57461a9f6.tar.gz coreclr-46f003fe2276e319f86d06b934aab9d57461a9f6.tar.bz2 coreclr-46f003fe2276e319f86d06b934aab9d57461a9f6.zip |
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
Diffstat (limited to 'build.proj')
-rw-r--r-- | build.proj | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/build.proj b/build.proj index eabe0e5b4b..bbec18785b 100644 --- a/build.proj +++ b/build.proj @@ -28,12 +28,11 @@ <Target Name="RestoreOptData"> <PropertyGroup> - <OptDataRestoreCommand>"$(DotnetToolCommand)"</OptDataRestoreCommand> - <OptDataRestoreCommand>$(OptDataRestoreCommand) restore</OptDataRestoreCommand> - <OptDataRestoreCommand>$(OptDataRestoreCommand) --packages "$(PackagesDir.TrimEnd('/').TrimEnd('\'))"</OptDataRestoreCommand> + <_OptimizationDataFeed Condition="'$(DotNetBuildOffline)' != 'true'">--source https://dotnet.myget.org/F/dotnet-core-optimization-data/api/v3/index.json</_OptimizationDataFeed> </PropertyGroup> - <Exec Command="$(OptDataRestoreCommand) $(SourceDir).nuget/optdata/optdata.csproj" - StandardOutputImportance="Low" /> + + <Exec Command="$(DotnetRestoreCommand) $(_OptimizationDataFeed) $(SourceDir).nuget/optdata/optdata.csproj" + StandardOutputImportance="Low" /> </Target> <!-- @@ -52,5 +51,5 @@ <Message Condition="Exists($(RootBinDir))" Importance="High" Text="Removing $(RootBinDir)"/> <RemoveDir Directories="$(RootBinDir)" /> </Target> - + </Project> |