diff --git a/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/UsageReport/WriteUsageReports.cs b/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/UsageReport/WriteUsageReports.cs index 4f1ed355f..73cbdec66 100644 --- a/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/UsageReport/WriteUsageReports.cs +++ b/src/SourceBuild/content/eng/tools/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/UsageReport/WriteUsageReports.cs @@ -17,7 +17,7 @@ namespace Microsoft.DotNet.SourceBuild.Tasks.UsageReport public class WriteUsageReports : Task { private const string SnapshotPrefix = "PackageVersions."; - private const string SnapshotSuffix = ".Current.props"; + private const string SnapshotSuffix = ".Snapshot.props"; /// /// Source usage data JSON file. @@ -26,7 +26,7 @@ namespace Microsoft.DotNet.SourceBuild.Tasks.UsageReport public string DataFile { get; set; } /// - /// A set of "PackageVersions.{repo}.Current.props" files. They are analyzed to find + /// A set of "PackageVersions.{repo}.Snapshot.props" files. They are analyzed to find /// packages built during source-build, and which repo built them. This info is added to the /// report. New packages are associated to a repo by going through each PVP in ascending /// file modification order. diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.props b/src/SourceBuild/content/repo-projects/Directory.Build.props index 3c2b19901..36f0ee859 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.props +++ b/src/SourceBuild/content/repo-projects/Directory.Build.props @@ -27,6 +27,7 @@ $(IntermediatePath)PackageVersions.$(RepositoryName).Current.props $(IntermediatePath)PackageVersions.$(RepositoryName).Previous.props + $(IntermediatePath)PackageVersions.$(RepositoryName).Snapshot.props $(IntermediatePath)PackageVersions.$(RepositoryName).props AllPackages diff --git a/src/SourceBuild/content/repo-projects/Directory.Build.targets b/src/SourceBuild/content/repo-projects/Directory.Build.targets index 2ab5faafe..45ed50f8f 100644 --- a/src/SourceBuild/content/repo-projects/Directory.Build.targets +++ b/src/SourceBuild/content/repo-projects/Directory.Build.targets @@ -225,17 +225,30 @@ + ExtraProperties="@(ExtraPackageVersionPropsPackageInfo)" + VersionPropsFlowType="$(PackageVersionPropsFlowType)" + VersionDetails="$(_VersionDetailsXml)" + AdditionalAssetDirs="@(_CurrentAdditionalAssetDirs)" + OutputPath="$(CurrentSourceBuiltPackageVersionPropsPath)" /> + VersionPropsFlowType="$(PackageVersionPropsFlowType)" + VersionDetails="$(_VersionDetailsXml)" + OutputPath="$(PreviouslySourceBuiltPackageVersionPropsPath)" /> + + + @@ -601,7 +614,7 @@ Outputs="$(RepoCompletedSemaphorePath)WritePrebuiltUsageData.complete"> - + @@ -687,7 +700,7 @@ - +