Skip to content

Commit

Permalink
Add workload metadata (#100649)
Browse files Browse the repository at this point in the history
  • Loading branch information
joeloff authored Apr 15, 2024
1 parent a494d22 commit 3c5a0af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/workloads/workloads.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@
<VSDrop Include="%(PartitionedSwixProjects.ZipFile)" SourceDirectory="%(ManifestOutputPath)" />
</ItemGroup>

<!-- Generate metadata for VSDROP automation. This information cannot be obtained during staging when insertions are triggered -->
<ItemGroup>
<VSDropMetadata Include="$(FileVersion)" />
<VSDropMetadata Include="$(BUILD_REPOSITORY_NAME)" />
<VSDropMetadata Include="$(BUILD_SOURCEBRANCH)"/>
</ItemGroup>

<WriteLinesToFile File="%(VSDrop.SourceDirectory)\.metadata" Lines="@(VSDropMetadata)" Overwrite="true" Condition="'$(OfficialBuild)' == 'true'" />

<MakeDir Directories="$(ArtifactsNonShippingPackagesDir)" />
<MakeDir Directories="$(VisualStudioSetupInsertionPath)" />
<ZipDirectory Overwrite="true" SourceDirectory="%(SourceDirectory)"
Expand Down

0 comments on commit 3c5a0af

Please sign in to comment.