Use task to create BaselineManifest.json
This commit is contained in:
parent
9606060377
commit
198f9ca7d6
1 changed files with 16 additions and 1 deletions
|
@ -104,6 +104,21 @@
|
|||
|
||||
<Copy SourceFiles="@(ManifestContent)"
|
||||
DestinationFolder="$(RedistLayoutPath)sdk-manifests/%(DestinationPath)"/>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<FormattedManifestPaths Include="$(RedistLayoutPath)sdk-manifests\**\%(BundledManifests.Identity)\WorkloadManifest.json" />
|
||||
</ItemGroup>
|
||||
|
||||
<JsonPropertyParser JFileNames="@(FormattedManifestPaths)" JPaths="version" Value="empty">
|
||||
<Output TaskParameter="Value" ItemName="BaselineManifestsWithVersion" />
|
||||
</JsonPropertyParser>
|
||||
|
||||
<ItemGroup>
|
||||
<FormattedBaselineManifest Include="{" />
|
||||
<FormattedBaselineManifest Include=""$([System.IO.Path]::GetFileName(%(BaselineManifestsWithVersion.Identity)))": "%(BaselineManifestsWithVersion.Version)","/>
|
||||
<FormattedBaselineManifest Include="}" />
|
||||
</ItemGroup>
|
||||
|
||||
<WriteLinestoFile File="$(RedistLayoutPath)sdk-manifests\BaselineManifest.json" Lines="@(FormattedBaselineManifest)" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in a new issue