[Deps]Update Unitsnet to 5.50.0 (#32572)
* [DEPS] Update Unitsnet to 5.50.0 * [DEPS] Update Unitsnet to 5.50.0 * fix bug 1
This commit is contained in:
Родитель
aa977f7579
Коммит
1ae8327a43
|
@ -86,7 +86,7 @@
|
|||
<PackageVersion Include="System.ServiceProcess.ServiceController" Version="8.0.0" />
|
||||
<PackageVersion Include="System.Text.Encoding.CodePages" Version="8.0.0" />
|
||||
<PackageVersion Include="UnicodeInformation" Version="2.6.0" />
|
||||
<PackageVersion Include="UnitsNet" Version="4.145.0" />
|
||||
<PackageVersion Include="UnitsNet" Version="5.50.0" />
|
||||
<PackageVersion Include="UTF.Unknown" Version="2.5.1" />
|
||||
<PackageVersion Include="Vanara.PInvoke.User32" Version="3.4.11" />
|
||||
<PackageVersion Include="Vanara.PInvoke.Shell32" Version="3.4.11" />
|
||||
|
@ -98,4 +98,4 @@
|
|||
<PackageVersion Include="Microsoft.VariantAssignment.Client" Version="2.4.17140001" />
|
||||
<PackageVersion Include="Microsoft.VariantAssignment.Contract" Version="3.0.16990001" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -1365,7 +1365,7 @@ EXHIBIT A -Mozilla Public License.
|
|||
- System.ServiceProcess.ServiceController 8.0.0
|
||||
- System.Text.Encoding.CodePages 8.0.0
|
||||
- UnicodeInformation 2.6.0
|
||||
- UnitsNet 4.145.0
|
||||
- UnitsNet 5.50.0
|
||||
- UTF.Unknown 2.5.1
|
||||
- Vanara.PInvoke.Shell32 3.4.11
|
||||
- Vanara.PInvoke.User32 3.4.11
|
||||
|
|
|
@ -44,13 +44,13 @@ namespace Community.PowerToys.Run.Plugin.UnitConverter
|
|||
return first.Value;
|
||||
}
|
||||
|
||||
if (UnitParser.Default.TryParse(unit, unitInfo.UnitType, out Enum enum_unit))
|
||||
if (UnitsNetSetup.Default.UnitParser.TryParse(unit, unitInfo.UnitType, out Enum enum_unit))
|
||||
{
|
||||
return enum_unit;
|
||||
}
|
||||
|
||||
var cultureInfoEnglish = new System.Globalization.CultureInfo("en-US");
|
||||
if (UnitParser.Default.TryParse(unit, unitInfo.UnitType, cultureInfoEnglish, out Enum enum_unit_en))
|
||||
if (UnitsNetSetup.Default.UnitParser.TryParse(unit, unitInfo.UnitType, cultureInfoEnglish, out Enum enum_unit_en))
|
||||
{
|
||||
return enum_unit_en;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче