summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWes Haggard <Wes.Haggard@microsoft.com>2017-10-24 16:46:07 -0700
committerWes Haggard <Wes.Haggard@microsoft.com>2017-10-30 13:06:26 -0700
commit4a259ae17d2550d32b95800fcbb68267cd809659 (patch)
tree1abe4d914cc2bdc086552acd97c91da2521f316a
parent901511aa1d201445e0c989ddd1543ff2544c4a71 (diff)
downloadcoreclr-4a259ae17d2550d32b95800fcbb68267cd809659.tar.gz
coreclr-4a259ae17d2550d32b95800fcbb68267cd809659.tar.bz2
coreclr-4a259ae17d2550d32b95800fcbb68267cd809659.zip
Use restore with no --source for optdata proj feed
This lets dotnet pick up RestoreSources hierarchically rather than only use what's predefined in DotnetRestoreCommand (in dir.props).
-rw-r--r--build.proj9
-rw-r--r--src/.nuget/optdata/optdata.csproj8
2 files changed, 15 insertions, 2 deletions
diff --git a/build.proj b/build.proj
index 3889d1cafb..465e49c471 100644
--- a/build.proj
+++ b/build.proj
@@ -25,8 +25,13 @@
</Target>
<Target Name="RestoreOptData">
- <Exec Command="$(DotnetRestoreCommand) $(SourceDir).nuget/optdata/optdata.csproj"
- StandardOutputImportance="Low" />
+ <PropertyGroup>
+ <OptDataRestoreCommand>"$(DotnetToolCommand)"</OptDataRestoreCommand>
+ <OptDataRestoreCommand>$(OptDataRestoreCommand) restore</OptDataRestoreCommand>
+ <OptDataRestoreCommand>$(OptDataRestoreCommand) --packages "$(PackagesDir.TrimEnd('/').TrimEnd('\'))"</OptDataRestoreCommand>
+ </PropertyGroup>
+ <Exec Command="$(OptDataRestoreCommand) $(SourceDir).nuget/optdata/optdata.csproj"
+ StandardOutputImportance="Low" />
</Target>
<!--
diff --git a/src/.nuget/optdata/optdata.csproj b/src/.nuget/optdata/optdata.csproj
index 20e2a40ada..76b5b97789 100644
--- a/src/.nuget/optdata/optdata.csproj
+++ b/src/.nuget/optdata/optdata.csproj
@@ -8,6 +8,14 @@
<RuntimeIdentifiers>win7-x64;win7-x86;linux-x64</RuntimeIdentifiers>
</PropertyGroup>
+ <!-- Add optimization data package restore source. -->
+ <PropertyGroup>
+ <RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
+ https://dotnet.myget.org/F/dotnet-core-optimization-data/api/v3/index.json;
+ $(RestoreSources)
+ </RestoreSources>
+ </PropertyGroup>
+
<ItemGroup>
<PackageReference Include="optimization.PGO.CoreCLR" Version="$(PgoDataPackageVersion)" Condition="'$(PgoDataPackageVersion)'!=''" />
<PackageReference Include="optimization.IBC.CoreCLR" Version="$(IbcDataPackageVersion)" Condition="'$(IbcDataPackageVersion)'!=''" />