Skip to content

Commit

Permalink
Write values.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Feb 18, 2024
1 parent 67cf683 commit de43661
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/IKVM.Core.MSBuild/targets/Transform.targets
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
</UsingTask>

<Target Name="WriteTransformValues" Condition=" '$(TargetFramework)' != '' ">
<WriteLinesToFile File="$(IntermediateOutputPath)TransformValues.txt" WriteOnlyWhenDifferent="true" Overwrite="true" />
<ItemGroup>
<_TransformValues Include="@(Transform->'%(Identity)=%(Value)')" />
</ItemGroup>
<WriteLinesToFile File="$(IntermediateOutputPath)TransformValues.txt" Lines="@(_TransformValues)" WriteOnlyWhenDifferent="true" Overwrite="true" />
</Target>

<Target Name="Transform" DependsOnTargets="WriteTransformValues" Inputs="$(IntermediateOutputPath)TransformValues.txt;@(Transform)" Outputs="@(Transform->'%(TargetPath)')" Condition=" '$(TargetFramework)' != '' And '@(Transform)' != '' ">
Expand Down

0 comments on commit de43661

Please sign in to comment.