Update manifest authoring for localization dir

This commit is contained in:
Sarah Oslund 2021-10-11 16:13:35 -07:00
parent f56b57c325
commit ba5131fbf5

View file

@ -68,13 +68,15 @@
</GenerateGuidFromName> </GenerateGuidFromName>
<ItemGroup> <ItemGroup>
<ManifestContent Include="%(BundledManifests.RestoredNupkgContentPath)\data\**\*" <ManifestContent Include="%(BundledManifests.RestoredNupkgContentPath)\data\*"
Condition="Exists('%(RestoredNupkgContentPath)\data')" Condition="Exists('%(RestoredNupkgContentPath)\data')"
DestinationPath="$([MSBuild]::ValueOrDefault('%(WorkloadManifestId)', '').ToLower())/"/> DestinationPath="$([MSBuild]::ValueOrDefault('%(WorkloadManifestId)', '').ToLower())"
RestoredNupkgContentPath="%(RestoredNupkgContentPath)"
WorkloadManifestId="%(WorkloadManifestId)"/>
<ManifestContent Include="%(BundledManifests.RestoredNupkgContentPath)\**\*.json;%(BundledManifests.RestoredNupkgContentPath)\**\*.targets" <ManifestContent Include="%(BundledManifests.RestoredNupkgContentPath)\data\localize\*"
Condition="!Exists('%(BundledManifests.RestoredNupkgContentPath)\data')" Condition="Exists('%(RestoredNupkgContentPath)\data\localize')"
DestinationPath="$([MSBuild]::ValueOrDefault('%(BundledManifests.WorkloadManifestId)', '').ToLower())/"/> DestinationPath="$([MSBuild]::ValueOrDefault('%(WorkloadManifestId)', '').ToLower())/localize"/>
</ItemGroup> </ItemGroup>
<Error Text="No workload manifest content found." Condition="'@(ManifestContent->Count())' == '0'" /> <Error Text="No workload manifest content found." Condition="'@(ManifestContent->Count())' == '0'" />