Use Arcade's internal tool restore project for restoring IBCMerge (#26133)
authorElinor Fung <47805090+elinor-fung@users.noreply.github.com>
Mon, 12 Aug 2019 19:47:01 +0000 (12:47 -0700)
committerAaron Robinson <arobins@microsoft.com>
Mon, 12 Aug 2019 19:47:01 +0000 (12:47 -0700)
eng/Versions.props
eng/build-job.yml
src/.nuget/optdata/ibcmerge.csproj

index 29cd577..0b14929 100644 (file)
@@ -10,6 +10,7 @@
     <DotNetUseShippingVersions>true</DotNetUseShippingVersions>
     <PreReleaseVersionLabel>preview9</PreReleaseVersionLabel>
     <!-- Opt-in/out repo features -->
+    <UsingToolIbcOptimization>true</UsingToolIbcOptimization>
     <UsingToolMicrosoftNetCompilers>true</UsingToolMicrosoftNetCompilers>
     <UsingToolXliff>false</UsingToolXliff>
     <!-- Package versions -->
@@ -25,8 +26,6 @@
     <MicrosoftBclAsyncInterfacesVersion>1.0.0-preview7.19326.2</MicrosoftBclAsyncInterfacesVersion>
     <!-- core-setup -->
     <MicrosoftNETCoreAppVersion>3.0.0-preview9-19411-11</MicrosoftNETCoreAppVersion>
-    <!-- dotnet-core-internal-tooling -->
-    <IbcMergePackageVersion>5.0.6-beta.19203.1</IbcMergePackageVersion>
     <!-- dotnet-optimization -->
     <optimizationIBCCoreCLRVersion>99.99.99-master-20190807.1</optimizationIBCCoreCLRVersion>
     <optimizationPGOCoreCLRVersion>99.99.99-master-20190807.1</optimizationPGOCoreCLRVersion>
index 6626f2a..40d4ae9 100644 (file)
@@ -115,7 +115,7 @@ jobs:
           inputs:
             command: restore
             feedsToUse: config
-            projects: 'src/.nuget/optdata/ibcmerge.csproj'
+            projects: '$(Build.SourcesDirectory)/eng/common/internal/Tools.csproj'
             nugetConfigPath: 'eng/internal/NuGet.config'
             restoreDirectory: '$(Build.SourcesDirectory)\.packages'
             verbosityRestore: 'normal'
index 71f9e4e..fd22730 100644 (file)
@@ -5,10 +5,6 @@
     <RuntimeIdentifiers>win7-x64;win7-x86;linux-x64</RuntimeIdentifiers>
   </PropertyGroup>
 
-  <ItemGroup>
-    <PackageReference Include="microsoft.dotnet.ibcmerge" Version="[$(IbcMergePackageVersion)]" Condition="'$(IbcMergePackageVersion)'!=''" />
-  </ItemGroup>
-
   <!--                                                                       -->
   <!-- Task: DumpIbcMergePackageVersion                                       -->
   <!--                                                                       -->
@@ -16,7 +12,7 @@
   <!--                                                                       -->
   <!-- DumpIbcMergePackageVersion is used by build.sh and build.cmd to pass  -->
   <!-- the version information to cmake. The task will write a file to be    -->
-  <!-- read back by build.cmd/sh. The path for the file is:                  --> 
+  <!-- read back by build.cmd/sh. The path for the file is:                  -->
   <!-- $(IbcMergePackageVersionOutputFile)                                    -->
   <!--                                                                       -->
   <Target Name="DumpIbcMergePackageVersion">
 
     <!-- Cleanup old version file -->
     <Delete Files="$(IbcMergePackageVersionOutputFile)" Condition="Exists('$(IbcMergePackageVersionOutputFile)')" />
-    <WriteLinesToFile File="$(IbcMergePackageVersionOutputFile)" Lines="$(IbcMergePackageVersion)" Overwrite="true"/>
-    <Message Text="IbcMergePackageVersion: $(IbcMergePackageVersion) written to: $(IbcMergePackageVersionOutputFile)" Importance="High" />
+    <WriteLinesToFile File="$(IbcMergePackageVersionOutputFile)" Lines="$(MicrosoftDotNetIBCMergeVersion)" Overwrite="true"/>
+    <Message Text="MicrosoftDotNetIBCMergeVersion: $(MicrosoftDotNetIBCMergeVersion) written to: $(IbcMergePackageVersionOutputFile)" Importance="High" />
   </Target>
 
-  <PropertyGroup>
-    <RestoreSources>
-      $(RestoreSources);
-      https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-core-internal-tooling/nuget/v3/index.json;
-    </RestoreSources>
-  </PropertyGroup>
 </Project>