Skip to content

Commit

Permalink
Handle building host test assets with stabilized package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
elinor-fung authored and github-actions committed Oct 18, 2024
1 parent ecefb5e commit cc48bcb
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 cc48bcb

Please sign in to comment.