Merge pull request #12790 from dotnet/marcpopMSFT-workloadmanifesttxt

Fix the logic that generates the fallback text file
This commit is contained in:
Marc Paine 2022-03-02 14:48:26 -08:00 committed by GitHub
commit b305016c87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -463,9 +463,13 @@
</Target>
<Target Name="CopyIncludedWorkloadManifestFile" >
<ItemGroup>
<WorkloadManifestFilesContent Include="$([MSBuild]::ValueOrDefault('%(BundledManifests.WorkloadManifestId)', '').ToLower())" />
<WorkloadManifestFilesContent Include="$([MSBuild]::ValueOrDefault('%(BundledManifests.Identity)', '').ToLower())" />
</ItemGroup>
<Error Text="No workload manifest content found." Condition="'@(WorkloadManifestFilesContent->Count())' == '0'" />
<WriteLinesToFile File="$(SdkOutputDirectory)IncludedWorkloadManifests.txt"
Lines="@(WorkloadManifestFilesContent)"
Overwrite="true" />