Skip to content

Commit

Permalink
Handle building host test assets with stabilized package versions (#1…
Browse files Browse the repository at this point in the history
…09031)

Co-authored-by: Elinor Fung <[email protected]>
  • Loading branch information
github-actions[bot] and elinor-fung authored Oct 18, 2024
1 parent ecefb5e commit 8e4889b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/installer/tests/Assets/Projects/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@
<Target Name="UpdateRuntimeFrameworkVersion"
Condition="'$(UseLocalTargetingRuntimePack)' == 'true'"
AfterTargets="ResolveTargetingPackAssets">
<PropertyGroup>
<_UpdatedVersion>$(Version)</_UpdatedVersion>
<!-- When package versions are stabilized, they do not have version suffixes. Because these are
non-shipping tests assets, the Version property will still include suffixes (unlike for shipping
assets), so we explicitly use the ProductVersion (without suffixes) in the stabilized case. -->
<_UpdatedVersion Condition="'$(StabilizePackageVersion)' == 'true'">$(ProductVersion)</_UpdatedVersion>
</PropertyGroup>
<ItemGroup>
<RuntimeFramework Version="$(Version)"
<RuntimeFramework Version="$(_UpdatedVersion)"
Condition="'%(RuntimeFramework.FrameworkName)' == '$(LocalFrameworkOverrideName)'" />
</ItemGroup>
</Target>
Expand Down

0 comments on commit 8e4889b

Please sign in to comment.