Skip to content

Commit

Permalink
Merge commit '197db4ff0ded5f02e2d050f1310f297265d19e3d'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirroring committed Oct 18, 2024
2 parents 87ac28b + 197db4f commit 9c52987
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
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
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public void ValidateThrowingWhenUsingCustomUnspecifiedLcid()
public void BuiltInRegionListTest()
{
// Ensure we can create all region info objects from the built-in list
Dictionary<string, string> regionNames = (Dictionary<string, string>)typeof(RegionInfo).Assembly.GetType("System.Globalization.CultureData").GetProperty("RegionNames", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null);
Dictionary<string, string> regionNames = (Dictionary<string, string>)Type.GetType("System.Globalization.CultureData, System.Private.CoreLib").GetProperty("RegionNames", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null);

foreach (var kvp in regionNames)
{
Expand Down

0 comments on commit 9c52987

Please sign in to comment.