Move SB metadata to intermediates (#4487)
authorElla Hathaway <67609881+ellahathaway@users.noreply.github.com>
Fri, 2 Feb 2024 20:25:18 +0000 (12:25 -0800)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2024 20:25:18 +0000 (14:25 -0600)
The changes in this pull request aim to [improve the UX and guideance
around the SourceBuild
metadata](https://github.com/dotnet/source-build/issues/3373) by placing
the metadata on explicit source-build intermediates.

The changes include:

- Removing existing SourceBuild metadata from all non-intermediate
dependencies.
- Defining new explicit intermediate dependencies and adding SourceBuild
metadata to those dependencies.

Related to https://github.com/dotnet/source-build/issues/3373 and
https://github.com/dotnet/source-build/issues/4073

eng/Version.Details.xml
eng/Versions.props

index 201819548b8551e545c99b0aeb75467124777b9a..fa59949fc55bdbb08659ab8743ab99c63066d5e9 100644 (file)
     <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24076.5">
       <Uri>https://github.com/dotnet/arcade</Uri>
       <Sha>66c9c5397d599af40f2a94989241944f5a73442a</Sha>
+    </Dependency>
+    <!-- Intermediate is necessary for source build. -->
+    <Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="9.0.0-beta.24076.5">
+      <Uri>https://github.com/dotnet/arcade</Uri>
+      <Sha>66c9c5397d599af40f2a94989241944f5a73442a</Sha>
       <SourceBuild RepoName="arcade" ManagedOnly="true" />
     </Dependency>
     <Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="9.0.0-beta.24076.5">
@@ -47,6 +52,7 @@
       <Uri>https://github.com/dotnet/runtime</Uri>
       <Sha>59edaad404d1b8e47080015ae8d0787f94c970df</Sha>
     </Dependency>
+    <!-- Intermediate is necessary for source build. -->
     <Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="9.0.0-alpha.1.24101.2">
       <Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
       <Sha>69b60d2af1775f374c91b3e52da02de6b7de1943</Sha>
index cbbe4449546b82eb9f8acf19d58a2a410b8d5be8..43a6e5d6a741f89731880dfaec056ed7df9d4831 100644 (file)
@@ -67,7 +67,6 @@
     <MicrosoftDotNetRemoteExecutorVersion>7.0.0-beta.22316.2</MicrosoftDotNetRemoteExecutorVersion>
     <cdbsosversion>10.0.18362</cdbsosversion>
     <NewtonSoftJsonVersion>13.0.1</NewtonSoftJsonVersion>
-    <MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>9.0.0-alpha.1.24101.2</MicrosoftSourceBuildIntermediatesourcebuildreferencepackagesPackageVersion>
     <!-- Roslyn and analyzers -->
     <!-- Compatibility with VS 16.11/.NET SDK 5.0.4xx -->
     <MicrosoftCodeAnalysisVersion_3_11>3.11.0</MicrosoftCodeAnalysisVersion_3_11>