centos 安装最新dotnet与无法通过命令创建项目,通过vscode报如下故障 Process terminated. Couldn’t find a valid ICU
Process terminated. Couldn’t find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.
解决故障:Process terminated. Couldn’t find a valid ICU package installed
on the system. Please install libicu (or icu-libs) using your package
manager and try again. Alternatively you can set the configuration
flag System.Globalization.Invariant to true if you want to run with no
globalization support. Please see https://aka.ms/dotnet-missing-libicu
for more information.
#在 Linux 上运行时,ICU 用于获取时区显示名称。在Invariant Mode中,返回标准时区名称。看来 CentOS 也不包括运行 dotnetcore 所需的“libicu” 。《.Net Core 程序错误 Process terminated.
Couldn’t find a valid ICU package installed on the
system.》,使用配置文件设置的办法绕过这个问题,但在实践中发现,.Net
Core的国际化应用会出现问题。彻底解决这个问题的办法是安装ICU库,
yum install libicu
安装后问题解决
在CentOS上安装最新版dotnet后,通过VSCode创建项目时遇到Process terminated错误,提示找不到有效的ICU包。解决方案是安装libicu或icu-libs,并提供了通过配置System.Globalization.Invariant为true的替代方案,但可能影响全球化支持。最终通过安装ICU库成功解决问题。

952

被折叠的 条评论
为什么被折叠?



